Örnek - ResourceServer
Şöyle yaparız. issuer-uri ile Resource Server'a Authorization Server'ın adresi belirtilir.
server:   port: 8081  servlet:     context-path: /resource-server-jwt spring:  security:    oauth2:      resourceserver:        jwt:          issuer-uri: http://localhost:8083/auth/realms/baeldungÖrnek - ResourceServer
Şöyle yaparız. 
spring:
  security:
    oauth2:
      resourceserver:
        jwt:
          jwk-set-uri: http://localhost:8080/auth/realms/My-Realm/protocol/openid-connect/certs
server:
  port: 9191Açıklaması şöyle
This JWK URI is required to validate the JWT token that comes in with the request.
 
Hiç yorum yok:
Yorum Gönder