Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.
This repository was archived by the owner on May 31, 2022. It is now read-only.

Bug: accessTokenValiditySeconds is not set for inMemory client #1448

@1011178l

Description

@1011178l

version: 2.2.1.RELEASE

Description:

In AuthorizationServerConfig, I overrided the configure(ClientDetailsServiceConfigurer clients) method.

then I use a clients.inMemory() and set the accessTokenVliditySeconds.

Later I find the token I got is still the default value.

I did a bit of deep research, and I find:

in the class DefaultTokenServices, method getAccessTokenValiditySeconds, because this.clientDetailsService is null, so the the custom time will not be used.

Not sure if this is a bug or I misused something.

Cheers,
Lang

for a workaround: https://stackoverflow.com/questions/47292961/spring-security-oauth2-not-using-token-expire-values-from-properties/51784859#51784859

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions