Spring Security 使用什么来生成 OAuth2 令牌?
What Spring Security uses to generate OAuth2 tokens?
Security Spring 如何生成安全令牌或它遵循什么算法来生成 OAuth2 令牌?
我们可以使用JWT或者open-id等作为授权token,但是默认使用什么?
如果您正在使用 Spring Security OAuth2 as an authorization server then the default for authorization code is a random value, see RandomValueAuthorizationCodeServices:
Base implementation for authorization code services that generates a random-value authorization code.
访问令牌和刷新令牌的默认值是随机 UUID,请参阅 DefaultTokenServices:
Base implementation for token services using random UUID values for the access token and refresh token values.
Security Spring 如何生成安全令牌或它遵循什么算法来生成 OAuth2 令牌?
我们可以使用JWT或者open-id等作为授权token,但是默认使用什么?
如果您正在使用 Spring Security OAuth2 as an authorization server then the default for authorization code is a random value, see RandomValueAuthorizationCodeServices:
Base implementation for authorization code services that generates a random-value authorization code.
访问令牌和刷新令牌的默认值是随机 UUID,请参阅 DefaultTokenServices:
Base implementation for token services using random UUID values for the access token and refresh token values.