spring-attic / spring-security-oauth

Support for adding OAuth1(a) and OAuth2 features (consumer and provider) for Spring web applications.
http://github.com/spring-projects/spring-security-oauth
Apache License 2.0
4.69k stars 4.04k forks source link

Referenced document doesn't reference how to migrate deprecated BearerTokenExtractor #1921

Closed GregDomjan closed 3 years ago

GregDomjan commented 3 years ago

https://github.com/spring-projects/spring-security-oauth/blob/6f2965368761d0f20027b62640e30c62844bcafd/spring-security-oauth2/src/main/java/org/springframework/security/oauth2/provider/authentication/BearerTokenExtractor.java#L32

jgrandja commented 3 years ago

@GregDomjan The new OAuth 2.0 support since Spring Security 5.0 is a complete re-write so classes in this project do not exist 1-1 in the new code base. You need to follow the OAuth 2.0 Migration Guide and the linked samples (see Examples Matrix).