Class UniqueAuthenticationKeyGenerator

java.lang.Object
io.jmix.securityoauth2.impl.UniqueAuthenticationKeyGenerator
All Implemented Interfaces:
org.springframework.security.oauth2.provider.token.AuthenticationKeyGenerator

public class UniqueAuthenticationKeyGenerator extends Object implements org.springframework.security.oauth2.provider.token.AuthenticationKeyGenerator
Key generator that uses random UUID for authentication keys. This makes token endpoint return unique access token on each token request.
  • Constructor Details

    • UniqueAuthenticationKeyGenerator

      public UniqueAuthenticationKeyGenerator()
  • Method Details

    • extractKey

      public String extractKey(org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
      Specified by:
      extractKey in interface org.springframework.security.oauth2.provider.token.AuthenticationKeyGenerator