Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

芋道 Spring Security OAuth2 入门的问题 #34

Open
CristianoYang opened this issue Aug 9, 2020 · 5 comments
Open

芋道 Spring Security OAuth2 入门的问题 #34

CristianoYang opened this issue Aug 9, 2020 · 5 comments
Labels
question Further information is requested

Comments

@CristianoYang
Copy link

小白按照教程一步步来,但是密码模式post请求总是返回401,这是为什么呀,头秃。

@CristianoYang
Copy link
Author

@OverRide
public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {
oauthServer.checkTokenAccess("isAuthenticated()");
}
把这个删了就行了。。。

@FateFrank
Copy link

不用删,你用postman请求的时候,没配置客户端基础认证吧
image

@YunaiV
Copy link
Collaborator

YunaiV commented Aug 10, 2020

要带上客户端认证的哈。

后面,我把模拟请求改成 IDEA Rest Client 插件,方便大家理解~

@YunaiV YunaiV added the question Further information is requested label Aug 10, 2020
@liubinylx
Copy link

要带上客户端认证的哈。
访问ExampleController
带上客户端认证,在resource,Authorization就带不了Bearer ,被覆盖了,报错401,去掉客户端认证,后台直接报错,
image

@FableFatale
Copy link

同样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants