UnauthorizedScopeError#

exception gafaelfawr.exceptions.UnauthorizedScopeError#

Bases: OAuthError

The token exchange requested a scope the GitHub project does not allow.

This corresponds to the invalid_scope error in RFC 6749: “The requested scope is invalid, unknown, malformed, or exceeds the scope granted by the resource owner.” The details, which name only the requested scopes that were refused, are sent to the client.

error: ClassVar[str] = 'invalid_scope'#

The RFC 6749 or RFC 6750 error code for this exception.

message: ClassVar[str] = 'Requested scope not allowed'#

The summary message to use when logging this error.