Add jwks_uri and use username
continuous-integration/drone/push Build is passing Details

This commit is contained in:
decentral1se 2021-06-11 18:26:38 +02:00
parent f2593e209e
commit 0aaf99da97
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A
2 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ oauth.register(
client_secret=KEYCLOAK_CLIENT_SECRET,
authorize_url=f"https://{KEYCLOAK_DOMAIN}/auth/realms/{KEYCLOAK_REALM}/protocol/openid-connect/auth",
access_token_url=f"https://{KEYCLOAK_DOMAIN}/auth/realms/{KEYCLOAK_REALM}/protocol/openid-connect/token",
jwks_uri=f"https://{KEYCLOAK_DOMAIN}/auth/realms/{KEYCLOAK_REALM}/protocol/openid-connect/certs",
)

View File

@ -3,6 +3,6 @@
<title>Home</title>
</head>
<body>
<p>Hello, {{ user }}</p>
<p>Hello, {{ user.preferred_username }}</p>
</body>
</html>