Re-add JWKs
This commit is contained in:
parent
66a89bee33
commit
a2d3591fc9
2 changed files with 7 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ void main(List<String> argsRaw) async {
|
|||
apiHelper.openidConfiguration,
|
||||
)
|
||||
..get("/userinfo", apiHelper.userinfoHandler)
|
||||
..get("/jwks.json", apiHelper.jwks)
|
||||
..post("/login", apiHelper.handleLogin)
|
||||
..post("/token", apiHelper.tokenHandler))
|
||||
.call,
|
||||
|
|
|
|||
|
|
@ -121,6 +121,11 @@ class ApiHelper {
|
|||
}
|
||||
}
|
||||
|
||||
Response jwks(_) => Response.ok(
|
||||
json.encode({"keys": []}),
|
||||
headers: {"content-type": "application/json"},
|
||||
);
|
||||
|
||||
Response openidConfiguration(_) {
|
||||
final settings = ref.read(SettingsController.provider)!;
|
||||
return Response.ok(
|
||||
|
|
@ -129,6 +134,7 @@ class ApiHelper {
|
|||
"authorization_endpoint": settings.authorizeEndpoint,
|
||||
"token_endpoint": "${settings.issuer}/token",
|
||||
"userinfo_endpoint": "${settings.issuer}/userinfo",
|
||||
"jwks_uri": "${settings.issuer}/jwks.json",
|
||||
"response_types_supported": ["code"],
|
||||
"subject_types_supported": ["public"],
|
||||
"id_token_signing_alg_values_supported": ["HS256"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue