Skip to main content

Module server

Module server 

Source

Modulesยง

auth ๐Ÿ”’
client ๐Ÿ”’
device ๐Ÿ”’
jwk ๐Ÿ”’
signing_key ๐Ÿ”’
token ๐Ÿ”’

Structsยง

ApprovedDeviceGrant
The approved grant data the token endpoint consumes to issue tokens.
AuthCodeSession
AuthRequest
ClientRegistration
Data ๐Ÿ”’
DcrRequest
DeviceGrant
A pending RFC 8628 device authorization grant, keyed in the store by its device_code and reachable for the browser approval step through a separate user_code index.
IdTokenClaims
Server

Enumsยง

DeviceGrantPoll
The outcome of a token-endpoint poll, mapped to the RFC 8628 ยง3.5 error codes by the caller.
DeviceGrantStatus

Constantsยง

API_SCOPE_PREFIXES ๐Ÿ”’
MSC2967 API-scope prefixes, stable spelling first.
AUTH_REQUEST_LIFETIME
DEVICE_GRANT_INTERVAL_SECS
DEVICE_GRANT_LIFETIME
DEVICE_SCOPE_PREFIXES ๐Ÿ”’
MSC2967 device-scope prefixes, stable spelling first.

Functionsยง

format_user_code
Render a stored user code for display, grouped with a single hyphen.
is_scope_char ๐Ÿ”’
RFC 6749 appendix A NQCHAR: printable ASCII except space, double quote and backslash. MSC4108 clients use unpadded base64 device ids.
narrow_scope
Restricts a requested OAuth scope to supported tokens per RFC 6749 ยง3.3.