Skip to main content

QOAuthScopeSet

@quik/oauth-server


@quik/oauth-server / QOAuthScopeSet

Class: QOAuthScopeSet

Defined in: oauth-server/src/utils/QOAuthScopeSet.ts:1

Constructors

Constructor

new QOAuthScopeSet(...scopes): QOAuthScopeSet

Defined in: oauth-server/src/utils/QOAuthScopeSet.ts:4

Parameters

scopes

...string[]

Returns

QOAuthScopeSet

Methods

has()

has(scope): boolean

Defined in: oauth-server/src/utils/QOAuthScopeSet.ts:8

Parameters

scope

string

Returns

boolean


hasAll()

hasAll(...scopes): boolean

Defined in: oauth-server/src/utils/QOAuthScopeSet.ts:12

Parameters

scopes

...string[]

Returns

boolean


hasAny()

hasAny(...scopes): boolean

Defined in: oauth-server/src/utils/QOAuthScopeSet.ts:16

Parameters

scopes

...string[]

Returns

boolean


intersection()

intersection(other): QOAuthScopeSet

Defined in: oauth-server/src/utils/QOAuthScopeSet.ts:25

Parameters

other

QOAuthScopeSet

Returns

QOAuthScopeSet


toArray()

toArray(): string[]

Defined in: oauth-server/src/utils/QOAuthScopeSet.ts:30

Returns

string[]


toString()

toString(): string

Defined in: oauth-server/src/utils/QOAuthScopeSet.ts:34

Returns

string


validate()

validate(requested): string[]

Defined in: oauth-server/src/utils/QOAuthScopeSet.ts:20

Parameters

requested

string | string[]

Returns

string[]


empty()

static empty(): QOAuthScopeSet

Defined in: oauth-server/src/utils/QOAuthScopeSet.ts:43

Returns

QOAuthScopeSet


fromString()

static fromString(spaceDelimited): QOAuthScopeSet

Defined in: oauth-server/src/utils/QOAuthScopeSet.ts:38

Parameters

spaceDelimited

string

Returns

QOAuthScopeSet