extends |
BaseEvent |
|---|
An event to collect scope information.
Different identity protocols use the concept of scope to limit the extent to which authorisation is provided by the user. This event is used to collect all the possible scopes that this SimpleID installation can provide, as well as human-friendly information on these scopes.
Scope information is categorised into types. Generally each identity protocol would have a separate type assigned. Currently the available types are:
openid for the OpenID 1 and 2 protocolsoauth for OAuth based protocols (including OpenID Connect)Listeners should use addScopeInfo() to add scope information.
| Methods | ||
|---|---|---|
public
|
addScopeInfo(string $type, array<string, array<string, mixed>> $scopes): void
|
# |
public
|
getScopesForType(string $type): array<string>
|
# |
public
|
getScopeInfoForType(string $type): array<string, mixed>
|
# |
public
|
getAllScopeInfo(): array<string, array<string, mixed>>
|
# |
| Properties | |||
|---|---|---|---|
protected
|
array<string, array<string, mixed>>
|
$scope_info = []
|
# |