Interface IFederationClient
Defines a basic interface for a federation endpoint that provides a security token for authentication.
Namespace: Oci.Common.Auth.Internal
Assembly: OCI.DotNetSDK.Common.dll
Syntax
public interface IFederationClientMethods
GetSecurityToken()
Gets a security token from the federation endpoint. May use a cached token if it judged to still be valid.
Declaration
string GetSecurityToken()Returns
| Type | Description | 
|---|---|
| string | A security token that can be used to authenticate requests. | 
GetStringClaim(string)
Get a claim embedded in the security token. May use the cached token if it is judged to still be valid.
Declaration
string GetStringClaim(string key)Parameters
| Type | Name | Description | 
|---|---|---|
| string | key | 
Returns
| Type | Description | 
|---|---|
| string | 
RefreshAndGetSecurityToken()
Gets a security token from the federation endpoint. This will always retreive a new token from the federation endpoint and does not use a cached token.
Declaration
string RefreshAndGetSecurityToken()Returns
| Type | Description | 
|---|---|
| string | A security token that can be used to authenticate requests. |