Table of Contents

IClientFacade Interface

Provides information about an OAuth client.

Syntax

Unit: Sphinx.ClientFacade

IClientFacade = interface(IInterface);

Methods

Name Description
AllowPkcePlainMethod Indicates if plain method (less secure) is allowed by the server when using PKCE.
DefaultScope Indicates the scope to be allowed in the token in case the OAuth request doesn't provide one.
GetAccessToken​Lifetime When an access token created, this method is called as an opportunity to modify the token lifetime.
GetAuthorization​Code​Lifetime When OAuth authorization code is created, this method is called as an opportunity to modify the code lifetime.
GetClientAppUrl Provides the URL of the client application for users to return to.
GetClientId Provides the client id.
GetDefaultRedirectUri Provides the default redirect URI to be used in case the authorization request doesn't include one.
GetDisplayName The user-friendly name of the client, to be displayed in the UI when needed.
GetFaviconUrl Provides the URL of the image to be used as favicon in the login app page.
GetIdentityToken​Lifetime When an identity token created, this method is called as an opportunity to modify the token lifetime.
GetLoginAbsolute​Timeout This method is called to modify the absolute lifetime limit for the login app transaction.
GetLoginTimeout This method is called to modify the idle timeout value for the login app transaction.
GetLogoLinkUrl Provides the URL to be followed when the end-user clicks the client logo in the UI.
GetLogoUrl Provides an URL to an image contaning the client logo.
GetParam Returns a value for a custom named parameter.
GetRefreshToken​Lifetime When a refresh token created, this method is called as an opportunity to modify the token lifetime.
GetSupportUrl Provides an URL pointing to an HTML page showing information about how to get support for this client.
GetTermsOfServiceUrl Provides an URL pointing to an HTML page showing the terms of the service for this client.
GetValidScope Checks if the provided requested scope can be granted to the requester.
IsGrantTypeAllowed Checks if this client allows the provided OAuth 2 grant type to be used.
IsSecretValid Checks if the provided client secret is valid.
IsValidRedirectUri Validates the redirect URI sent in the authorization request.
RequireClientSecret Indicates client authentication using secret is required to provide tokens.
RequirePkce Indicates if PKCE will be required by this client when authorization code flow is used.