C# Class KeycloakIdentityModel.Utilities.OidcDataManager

Datei anzeigen Open project: dylanplecki/KeycloakOwinAuthentication Class Usage Examples

Public Methods

Method Description
BuildAccessTokenEndpointContent ( Uri baseUri, string code ) : HttpContent
BuildAuthorizationEndpointContent ( Uri requestUri, string state ) : HttpContent
BuildEndSessionEndpointContent ( Uri requestUri, string idToken = null, string postLogoutRedirectUrl = null ) : HttpContent
BuildRefreshTokenEndpointContent ( string refreshToken ) : HttpContent
CreateCachedContext ( IKeycloakParameters options, bool preload = true ) : Task
GetAuthorizationEndpoint ( ) : Uri
GetCachedContext ( IKeycloakParameters options ) : OidcDataManager
GetCachedContext ( string authType ) : OidcDataManager
GetCachedContextAsync ( IKeycloakParameters options ) : Task
GetCallbackUri ( Uri baseUri ) : Uri
GetEndSessionEndpoint ( ) : Uri
GetIssuer ( ) : string
GetJsonWebKeys ( ) : Microsoft.IdentityModel.Protocols.JsonWebKeySet
GetJwksUri ( ) : Uri
GetTokenEndpoint ( ) : Uri
GetUserInfoEndpoint ( ) : Uri
RefreshMetadataAsync ( ) : Task
TryRefreshMetadataAsync ( ) : Task
ValidateCachedContextAsync ( IKeycloakParameters options ) : Task

Protected Methods

Method Description
OidcDataManager ( IKeycloakParameters options ) : System

Private Methods

Method Description
GetCachedContextSafe ( string authType ) : OidcDataManager
HttpApiGet ( Uri uri ) : Task
ValidateCachedContextAsync ( ) : Task

Method Details

BuildAccessTokenEndpointContent() public method

public BuildAccessTokenEndpointContent ( Uri baseUri, string code ) : HttpContent
baseUri System.Uri
code string
return System.Net.Http.HttpContent

BuildAuthorizationEndpointContent() public method

public BuildAuthorizationEndpointContent ( Uri requestUri, string state ) : HttpContent
requestUri System.Uri
state string
return System.Net.Http.HttpContent

BuildEndSessionEndpointContent() public method

public BuildEndSessionEndpointContent ( Uri requestUri, string idToken = null, string postLogoutRedirectUrl = null ) : HttpContent
requestUri System.Uri
idToken string
postLogoutRedirectUrl string
return System.Net.Http.HttpContent

BuildRefreshTokenEndpointContent() public method

public BuildRefreshTokenEndpointContent ( string refreshToken ) : HttpContent
refreshToken string
return System.Net.Http.HttpContent

CreateCachedContext() public static method

public static CreateCachedContext ( IKeycloakParameters options, bool preload = true ) : Task
options IKeycloakParameters
preload bool
return Task

GetAuthorizationEndpoint() public method

public GetAuthorizationEndpoint ( ) : Uri
return System.Uri

GetCachedContext() public static method

public static GetCachedContext ( IKeycloakParameters options ) : OidcDataManager
options IKeycloakParameters
return OidcDataManager

GetCachedContext() public static method

public static GetCachedContext ( string authType ) : OidcDataManager
authType string
return OidcDataManager

GetCachedContextAsync() public static method

public static GetCachedContextAsync ( IKeycloakParameters options ) : Task
options IKeycloakParameters
return Task

GetCallbackUri() public method

public GetCallbackUri ( Uri baseUri ) : Uri
baseUri System.Uri
return System.Uri

GetEndSessionEndpoint() public method

public GetEndSessionEndpoint ( ) : Uri
return System.Uri

GetIssuer() public method

public GetIssuer ( ) : string
return string

GetJsonWebKeys() public method

public GetJsonWebKeys ( ) : Microsoft.IdentityModel.Protocols.JsonWebKeySet
return Microsoft.IdentityModel.Protocols.JsonWebKeySet

GetJwksUri() public method

public GetJwksUri ( ) : Uri
return System.Uri

GetTokenEndpoint() public method

public GetTokenEndpoint ( ) : Uri
return System.Uri

GetUserInfoEndpoint() public method

public GetUserInfoEndpoint ( ) : Uri
return System.Uri

OidcDataManager() protected method

protected OidcDataManager ( IKeycloakParameters options ) : System
options IKeycloakParameters
return System

RefreshMetadataAsync() public method

public RefreshMetadataAsync ( ) : Task
return Task

TryRefreshMetadataAsync() public method

public TryRefreshMetadataAsync ( ) : Task
return Task

ValidateCachedContextAsync() public static method

public static ValidateCachedContextAsync ( IKeycloakParameters options ) : Task
options IKeycloakParameters
return Task