Skip to content

Commit

Permalink
OAuth2 tokens configuration for frontend client
Browse files Browse the repository at this point in the history
refresh token TTL 5 days (+ disabled reuse of refresh tokens)
acces token TTL 1 hour
  • Loading branch information
dapolach committed Sep 9, 2024
1 parent 06b2afc commit 9302295
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ spring:
- "openid"
- "profile"
- "email"
require-proof-key: true
token:
reuse-refresh-tokens: false
refresh-token-time-to-live: P5D # 5 days
access-token-time-to-live: PT1H # 1 hour
2000:
registration:
client-id: "test"
Expand All @@ -86,6 +91,10 @@ spring:
- "profile"
- "email"
# require-authorization-consent: true
token:
reuse-refresh-tokens: false
refresh-token-time-to-live: P5D # 5 days
access-token-time-to-live: PT1H # 1 hour
3000:
registration:
client-id: "apispec"
Expand Down

0 comments on commit 9302295

Please sign in to comment.