JwtAccessTokenConverter etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
JwtAccessTokenConverter etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

10 Temmuz 2018 Salı

SpringSecurity OAuth2 JwtAccessTokenConverter Sınıfı

Giriş
Açıklaması şöyle
The CustomTokenEnhancer is used on the AuthorizationServer side to enhance a created token with additional custom information. You should use the so called DefaultAccessTokenConverter on the ResourceServer side to extract these extra claims.
constructor
Şöyle yaparız.
@Bean
public JwtAccessTokenConverter accessTokenConverter() {
  JwtAccessTokenConverter converter = new JwtAccessTokenConverter();
  ...
  return converter;
}
setSigningKey metodu
Örnek ver