Skip to content

feat: accept OAuth JWT access tokens in the test server - #48

Merged
azmeuk merged 2 commits into
mainfrom
oauth-resource-server
Nov 12, 2026
Merged

azmeuk merged 2 commits into
mainfrom
oauth-resource-server

Conversation

@azmeuk

@azmeuk azmeuk commented Nov 10, 2026

Copy link
Copy Markdown
Member

The --oauth-issuer and --oauth-audience options accept the JWT access tokens of RFC 9068, and announce the oauth2 scheme. The keys come from the jwks_uri of the issuer metadata (RFC 8414, then OpenID Connect Discovery), or from --oauth-jwks-uri. --oauth-scope requires a scope.

@read-the-docs-community

read-the-docs-community Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 scim2-server | 🛠️ Build #35843729 | 📁 Comparing fd57d0e against latest (a97e6cd)

  🔍 Preview build  

4 files changed
± changelog.html
± genindex.html
± reference/cli.html
± _modules/scim2_server/applications/base.html

The --oauth-issuer and --oauth-audience options accept the JWT access
tokens of RFC 9068, and announce the oauth2 scheme. The keys come from
the jwks_uri of the issuer metadata (RFC 8414, then OpenID Connect
Discovery), or from --oauth-jwks-uri. --oauth-scope requires a scope.

Errors follow RFC 6750 §3: 401 with invalid_token, 403 with
insufficient_scope, and no error code without a token.

The options need the new oauth extra, which the container image
installs. StaticCredentialsApplication is renamed CredentialsApplication.
…y a token is refused

When the metadata or the keys of the issuer cannot be downloaded or
read, the test server answers 503 with a Retry-After header, instead of
500. Per RFC 9110 §15.6.4, the client can send the request again later.

The detail of a 401 gives the reason a token is refused, such as an
invalid aud claim or an expired token. The detail of a 403 gives the
missing scope.
@azmeuk
azmeuk force-pushed the oauth-resource-server branch from b0d14bd to fd57d0e Compare November 12, 2026 16:01
@azmeuk
azmeuk marked this pull request as ready for review November 12, 2026 16:01
@azmeuk
azmeuk enabled auto-merge November 12, 2026 16:03
@azmeuk
azmeuk merged commit 6d1225a into main Nov 12, 2026
10 checks passed
@azmeuk
azmeuk deleted the oauth-resource-server branch November 12, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant