forked from Flowpack/Flowpack.OAuth2.Client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFlowInterface.php
58 lines (49 loc) · 2.03 KB
/
FlowInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
namespace Flowpack\OAuth2\Client\Flow;
/* *
* This script belongs to the TYPO3 Flow package "Flowpack.OAuth2.Client".*
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU General Public License, either version 3 of the *
* License, or (at your option) any later version. *
* *
* The TYPO3 project - inspiring people to share! *
* */
use Flowpack\OAuth2\Client\Token\AbstractClientToken;
use Neos\Flow\Annotations as Flow;
use Neos\Flow\Security\Account;
use Neos\Flow\Security\Authentication\TokenInterface;
/**
*/
interface FlowInterface
{
/**
* @return AbstractClientToken
*/
public function getChargedAuthenticatedTokenHavingNoPartyAttached();
/**
* @param \Neos\Flow\Security\Authentication\TokenInterface|\Flowpack\OAuth2\Client\Token\AbstractClientToken $token
* @return TokenInterface
*/
public function getTokenOfForeignAccountOf(AbstractClientToken $token);
/**
* @param AbstractClientToken $token
* @return Account
*/
public function getForeignAccountFor(AbstractClientToken $token);
/**
* @param AbstractClientToken $token
*/
public function createPartyAndAttachToAccountFor(AbstractClientToken $token);
/**
* @param TokenInterface $foreignAccountToken
* @param AbstractClientToken $possibleOAuthTokenAuthenticatedWithoutParty
*/
public function setPartyOfAuthenticatedTokenAndAttachToAccountFor(TokenInterface $foreignAccountToken, AbstractClientToken $possibleOAuthTokenAuthenticatedWithoutParty);
/**
* Returns the token class name this flow is responsible for
*
* @return string
*/
public function getTokenClassName();
}