AuthenticationCoreConfig

class AuthenticationCoreConfig(discoveryEndpoint: String? = null, authorizeEndpoint: String? = null, tokenEndpoint: String? = null, userInfoEndpoint: String? = null, logoutEndpoint: String? = null, authnEndpoint: String? = null, redirectUri: String, clientId: String, scope: String, integrityToken: String? = null, googleWebClientId: String? = null, isDevelopment: Boolean? = false)

Holds the configuration related to the AuthenticationCoreDef.

Parameters

discoveryEndpoint

Discovery endpoint of Asgardeo.

authorizeEndpoint

Authorization endpoint of Asgardeo - optional

tokenEndpoint

Token endpoint of Asgardeo - optional

userInfoEndpoint

User info endpoint of Asgardeo - optional

logoutEndpoint

Logout endpoint of Asgardeo - optional

authnEndpoint

Authentication endpoint of Asgardeo - optional

redirectUri

Redirect uri of the application

clientId

Client id of the application

scope

Scope of the application (ex: openid profile email)

integrityToken

Client attestation integrity token - optional

googleWebClientId

Google web client id - optional This is required when the application needs to authenticate with Google, add the client id of the Google connection that is used to create the connection in Asgardeo.

isDevelopment

The flag to check whether the app is in development mode or not. If true, the LessSecureHttpClient instance will be returned. Otherwise, the default OkHttpClient instance will be returned. Default value is false. It is not recommended to keep this value as false in the production environment.

Constructors

Link copied to clipboard
constructor(discoveryEndpoint: String? = null, authorizeEndpoint: String? = null, tokenEndpoint: String? = null, userInfoEndpoint: String? = null, logoutEndpoint: String? = null, authnEndpoint: String? = null, redirectUri: String, clientId: String, scope: String, integrityToken: String? = null, googleWebClientId: String? = null, isDevelopment: Boolean? = false)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks the equality of the passed object with the current object.

Link copied to clipboard

example https://localhost:9443/oauth2/authn

Link copied to clipboard

example https://localhost:9443/oauth2/authorize

Link copied to clipboard
Link copied to clipboard

example https://localhost:9443/oauth2/token/.well-known/openid-configuration

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

example https://localhost:9443/oidc/logout

Link copied to clipboard

example https://example-app.com/redirect

Link copied to clipboard
Link copied to clipboard

example https://localhost:9443/oauth2/token

Link copied to clipboard

example https://localhost:9443/oauth2/userinfo

Link copied to clipboard
open override fun hashCode(): Int

Generates a hash code for the current object.

Link copied to clipboard
fun updateBasedOnDiscoveryResponse(discoveryResponse: JsonNode?): AuthenticationCoreConfig

Update the core configuration based on the discovery response.