Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.

Documentation states wrong configuration prefix. #200

Closed
wondee opened this issue Dec 11, 2019 · 4 comments
Closed

Documentation states wrong configuration prefix. #200

wondee opened this issue Dec 11, 2019 · 4 comments
Assignees

Comments

@wondee
Copy link

wondee commented Dec 11, 2019

Summary

The Documenation states that the prefix for activating the OAuth2ResourceServerConfiguration is spring.security.oauth.resource.*, but in the getMatchOutcome(..) method the prefix is set like this String prefix = "security.oauth2.resource.";.

Configuration

Added @EnableResourceServer and add configuration like:

spring: 
  security:
    oauth2:
      resource:
        jwt:
          key-value: somekey

Sample

See: https://docs.spring.io/spring-security-oauth2-boot/docs/current/reference/html/boot-features-security-oauth2-resource-server.html#oauth2-boot-resource-server-jwt-single-key

@jgrandja jgrandja transferred this issue from spring-attic/spring-security-oauth Dec 11, 2019
@jzheaux
Copy link
Contributor

jzheaux commented Dec 18, 2019

Thanks for the report, @wondee! Would you be interested in submitting a PR?

@wondee
Copy link
Author

wondee commented Dec 19, 2019

Sure, what shall be fixed? Documentation or Placeholder Prefix?

@jzheaux
Copy link
Contributor

jzheaux commented Dec 19, 2019

Good question, @wondee. Let's make sure the documentation matches what the code already does.

@jzheaux
Copy link
Contributor

jzheaux commented Jan 27, 2020

Fixed via bbaf069

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants