OAuth client information.

Hierarchy

  • OAuthClientConfiguration

Properties

accessTokenTimeToLive: number

Returns

the number of seconds that a new access token is valid for.

audiences: any[]

Returns

the audiences of this OAuth client.

audiencesAsString: string

Returns

the whitespace-separated audiences of this OAuth client.

claims: {
    [key: string]: RequestedClaim;
}

Returns

a map containing all claims that this OAuth client is allowed to request for tokens.

Type declaration

clientId: string

Deprecated

use getId() instead.

clientName: null | string

Deprecated

use getName() instead.

delegationTimeToLive: number

Returns

the number of seconds that a new delegation is valid for.

description: null | string

A description of this OAuth client.

id: string

The ID of the OAuth client as configured in Curity.

idTokenIssuer: null | string

Returns

the ID token issuer if configured for this client, or null otherwise.

idTokenTimeToLive: number

Returns

the number of seconds that a new ID token is valid for.

initiallyAuthenticatedUser: null | string

Returns

the authenticated user at the time that this client was registered. Notice that this is only valid for dynamically registered clients. Other clients will return null.

name: null | string

User-friendly name of this OAuth client.

prefixScopes: {
    [key: string]: ConfiguredScope;
}

Returns

the configured prefix scopes for this OAuth client.

Type declaration

properties: object

The properties of this client. The property values are typed, i.e. if they were stored with non-string values, which is possible for dynamically-registered clients, their type will be maintained. Notice that static clients can only have string-valued properties.

redirectUris: any[]

The authorized redirect URIs for this OAuth client.

refreshTokenTimeToLive: number

Returns

the number of seconds that a new refresh token is valid for.

scope: string

Deprecated

use [getScopeNames] instead.

Deprecated

scopeMap: ScopeMap

Get the scopes this OAuth client is configured with. This method returns a typed object that can be used to safely check requested scopes. Prefer to use this object than calling [getScopeNames] and using Set operations on that.@returns the scopes configured for this client.

scopeNames: any[]

Returns

the names of the scopes this OAuth client is configured with. Notice that this may include prefix scopes. Prefer to use [getScopes] or [getPrefixScopes] to obtain full information about the scopes configuration.

scopes: {
    [key: string]: ConfiguredScope;
}

Returns

all the configured scopes for this OAuth client.

Type declaration

secret: null | string

The secret of this client. May be null if this client is not authenticated or uses a different method to authenticate.

Methods

  • Returns

    whether this OAuth client allows de-selecting consent for certain claims.

    Returns boolean

  • Returns

    the number of seconds that a new access token is valid for.

    Returns number

  • Returns

    the audiences of this OAuth client.

    Returns any[]

  • Returns

    the whitespace-separated audiences of this OAuth client.

    Returns string

  • Returns

    a map containing all claims that this OAuth client is allowed to request for tokens.

    Returns {
        [key: string]: RequestedClaim;
    }

  • Deprecated

    use getId() instead.

    Returns string

  • Deprecated

    use getName() instead.

    Returns null | string

  • Returns

    the number of seconds that a new delegation is valid for.

    Returns number

  • A description of this OAuth client.

    Returns null | string

  • The ID of the OAuth client as configured in Curity.

    Returns string

  • Returns

    the ID token issuer if configured for this client, or null otherwise.

    Returns null | string

  • Returns

    the number of seconds that a new ID token is valid for.

    Returns number

  • Returns

    the authenticated user at the time that this client was registered. Notice that this is only valid for dynamically registered clients. Other clients will return null.

    Returns null | string

  • User-friendly name of this OAuth client.

    Returns null | string

  • Returns

    the configured prefix scopes for this OAuth client.

    Returns {
        [key: string]: ConfiguredScope;
    }

  • The properties of this client. The property values are typed, i.e. if they were stored with non-string values, which is possible for dynamically-registered clients, their type will be maintained. Notice that static clients can only have string-valued properties.

    Returns object

  • The authorized redirect URIs for this OAuth client.

    Returns any[]

  • Returns

    the number of seconds that a new refresh token is valid for.

    Returns number

  • Deprecated

    use [getScopeNames] instead.

    Deprecated

    Returns string

  • Get the scopes this OAuth client is configured with. This method returns a typed object that can be used to safely check requested scopes. Prefer to use this object than calling [getScopeNames] and using Set operations on that.@returns the scopes configured for this client.

    Returns ScopeMap

  • Returns

    the names of the scopes this OAuth client is configured with. Notice that this may include prefix scopes. Prefer to use [getScopes] or [getPrefixScopes] to obtain full information about the scopes configuration.

    Returns any[]

  • Returns

    all the configured scopes for this OAuth client.

    Returns {
        [key: string]: ConfiguredScope;
    }

  • The secret of this client. May be null if this client is not authenticated or uses a different method to authenticate.

    Returns null | string

  • Returns

    whether this is a public client. If not, this is a confidential client.

    Returns boolean

  • Returns

    whether this OAuth client requires user consent on authorization flows.

    Deprecated

    use requiresUserConsent() instead.

    Returns boolean

  • Returns

    whether this OAuth client requires user consent on authorization flows.

    Returns boolean