Polish "OIDC issuer uri in OAuth resource server config"
Closes gh-14190
This commit is contained in:
@@ -539,7 +539,7 @@ content into your application. Rather, pick only the properties that you need.
|
||||
|
||||
# SECURITY OAUTH2 RESOURCE SERVER ({sc-spring-boot-autoconfigure}/security/oauth2/resource/OAuth2ResourceServerProperties.{sc-ext}[OAuth2ResourceServerProperties])
|
||||
spring.security.oauth2.resourceserver.jwt.jwk-set-uri= # JSON Web Key URI to use to verify the JWT token.
|
||||
spring.security.oauth2.resource.jwt.oidc-issuer-location= # Location for issuer oidc
|
||||
spring.security.oauth2.resource.jwt.issuer-uri= # URI that an OpenID Connect Provider asserts as its Issuer Identifier.
|
||||
|
||||
# ----------------------------------------
|
||||
# DATA PROPERTIES
|
||||
|
||||
@@ -3320,14 +3320,19 @@ Provider can be configured with the `issuer-uri`:
|
||||
[[boot-features-security-oauth2-server]]
|
||||
==== Resource Server
|
||||
If you have `spring-security-oauth2-resource-server` on your classpath, Spring Boot can
|
||||
set up an OAuth2 Resource Server as long as a JWK Set URI is specified, as shown in the
|
||||
following example:
|
||||
set up an OAuth2 Resource Server as long as a JWK Set URI or OIDC Issuer URI is specified,
|
||||
as shown in the following examples:
|
||||
|
||||
[source,properties,indent=0]
|
||||
----
|
||||
spring.security.oauth2.resourceserver.jwt.jwk-set-uri=https://example.com/oauth2/default/v1/keys
|
||||
----
|
||||
|
||||
[source,properties,indent=0]
|
||||
----
|
||||
spring.security.oauth2.resourceserver.jwt.issuer-uri=https://dev-123456.oktapreview.com/oauth2/default/
|
||||
----
|
||||
|
||||
The same properties are applicable for both servlet and reactive applications.
|
||||
|
||||
Alternatively, you can define your own `JwtDecoder` bean for servlet applications
|
||||
|
||||
Reference in New Issue
Block a user