Class SsoTokenProvider
- Aws\Token\SsoTokenProvider implements Aws\Token\RefreshableTokenProviderInterface uses Aws\Token\ParsesIniTrait
- Namespace: Aws\Token
- Located at Token/SsoTokenProvider.php
Token that comes from the SSO provider
Methods Summary
-
__construct ( string $ssoProfileName, int $filename = null, $ssoOidcClient = null )
Constructs a new SsoTokenProvider object, which will fetch a token from an authenticated SSO profile
- __invoke ( )
-
refresh ( )
Refreshes the token
-
shouldAttemptRefresh ( )
Check if a refresh should be attempted
- static getTokenLocation ( $sso_session )
- getTokenData ( $tokenLocation )
Methods Details
__construct ( string $ssoProfileName, integer $filename = null, $ssoOidcClient = null )
Constructs a new SsoTokenProvider object, which will fetch a token from an authenticated SSO profile
Parameters
string | $ssoProfileName | The name of the profile that contains the sso_session key |
integer | $filename = null | Name of the config file to sso profile from |
$ssoOidcClient = null |
__invoke ( )
mixed|null refresh ( )
Refreshes the token
Returns
mixed|null |
Implementation of
boolean shouldAttemptRefresh ( )
Check if a refresh should be attempted
Returns
boolean |
Implementation of
static string getTokenLocation ( $sso_session )
Parameters
$sso_session |
Returns
string |
array getTokenData ( $tokenLocation )
Parameters
$tokenLocation |
Returns
array |
Constants summary
string |
ENV_PROFILE
|
#
'AWS_PROFILE'
|