A Map of scopes which can be used to verify scopes requested by OAuth clients as well as obtain sub-sets of scope configurations that belong to different Sets (e.g. OAuth profile and client scope config).

Hierarchy

  • ScopeMap

Properties

all: any[]
claims: any[]
onlyRequiredScopes: ScopeMap
scopeValues: any[]

Methods

  • Parameters

    • requestedScopes: any[]

    Returns boolean

  • Returns any[]

  • Parameters

    • requestedScope: string

    Returns boolean

  • Parameters

    • requestedScopes: null | string

    Returns boolean

  • Filter only those scopes that are present in the given Set.

    Parameters

    • scopeValues: any[]

    Returns ScopeMap

  • Filter only those scopes that contain all the claims of the provided claimset

    Parameters

    Returns ScopeMap

  • Filter only those scopes that satisfy the provided filter function. All scope types are evaluated, OAuthScopes as well as Prefix Scopes.

    Parameters

    • predicate: ((config: ScopeConfig) => boolean)

      filter method, that returns true when the ScopeConfig must be present in the output

    Returns ScopeMap

  • Parameters

    • requestedScope: string

    Returns null | ScopeConfig

  • Returns any[]

  • Parameters

    • claimName: string

    Returns any[]

  • Parameters

    • requestedScopes: string

    Returns any[]

  • Parameters

    • requestedScopeNames: any[]

    Returns any[]

  • Returns any[]

  • Returns ScopeMap

  • Parameters

    • scopes: any[]

    Returns ScopeMap

  • Returns any[]

  • Returns boolean

  • Returns number