Skip to content

Show the use of token properties in authorization server clients configuration example #44990

Closed
@OrangeDog

Description

@OrangeDog

Spring Authorization Server allows defining per-client token settings.
spring-projects/spring-authorization-server#1385 (comment)

However, Boot's OAuth2AuthorizationServerProperties does not expose this. I'd like to see something like this:

spring.security.oauth2.authorizationserver.client:
  my-client:
    client-id: 41fd9212-dc6f-4ced-a7a8-e6431a3f49da
    client-secret: '{noop}secret'
    tokens:
      authorization-code-time-to-live: 5m
      access-token-time-to-live: 10m
      access-token-format: reference
      reuse-refresh-tokens: false
      refresh-token-time-to-live: 28d

Possibly an ability to set a default for all clients too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions