Show / Hide Table of Contents

Class OkeWorkloadIdentityResourcePrincipalsFederationClient

OkeWorkloadIdentityResourcePrincipalsFederationClient class is used for the federation client for the OkeWorkloadIdentityAuthenticationDetailsProvider

Inheritance
object
OkeWorkloadIdentityResourcePrincipalsFederationClient
Implements
IFederationClient
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.Common.Auth.Internal
Assembly: OCI.DotNetSDK.Common.dll
Syntax
public class OkeWorkloadIdentityResourcePrincipalsFederationClient : IFederationClient

Fields

logger

Declaration
protected static Logger logger
Field Value
Type Description
Logger

Methods

CreateFederationClient(ISessionKeySupplier, IServiceAccountTokenSupplier)

Declaration
public static OkeWorkloadIdentityResourcePrincipalsFederationClient CreateFederationClient(ISessionKeySupplier sessionKeySupplier, IServiceAccountTokenSupplier serviceAccountTokenSupplier)
Parameters
Type Name Description
ISessionKeySupplier sessionKeySupplier
IServiceAccountTokenSupplier serviceAccountTokenSupplier
Returns
Type Description
OkeWorkloadIdentityResourcePrincipalsFederationClient

GetSecurityToken()

Gets a security token from the federation endpoint. May use a cached token if it judged to still be valid.

Declaration
public 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
public 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
public string RefreshAndGetSecurityToken()
Returns
Type Description
string

A security token that can be used to authenticate requests.

RefreshAndGetSecurityTokenIfExpiringWithin(bool, double)

Declaration
public string RefreshAndGetSecurityTokenIfExpiringWithin(bool doFinalTokenValidityCheck, double time)
Parameters
Type Name Description
bool doFinalTokenValidityCheck
double time
Returns
Type Description
string

Implements

IFederationClient
In this article
Back to top