Options
All
  • Public
  • Public/Protected
  • All
Menu

The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions to ensure uniqueness of strings.

Hierarchy

  • ScopeSet

Index

Constructors

constructor

  • new ScopeSet(inputScopes: string[]): ScopeSet

Methods

appendScope

  • appendScope(newScope: string): void

appendScopes

  • appendScopes(newScopes: string[]): void

asArray

  • asArray(): string[]

containsOnlyOIDCScopes

  • containsOnlyOIDCScopes(): boolean

containsScope

  • containsScope(scope: string): boolean

containsScopeSet

  • containsScopeSet(scopeSet: ScopeSet): boolean

getScopeCount

  • getScopeCount(): number

intersectingScopeSets

  • intersectingScopeSets(otherScopes: ScopeSet): boolean

printScopes

  • printScopes(): string

printScopesLowerCase

  • printScopesLowerCase(): string

removeOIDCScopes

  • removeOIDCScopes(): void
  • Removes default scopes from set of scopes Primarily used to prevent cache misses if the default scopes are not returned from the server

    Returns void

removeScope

  • removeScope(scope: string): void

unionScopeSets

  • unionScopeSets(otherScopes: ScopeSet): Set<string>

Static fromString

  • fromString(inputScopeString: string): ScopeSet

Generated using TypeDoc