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

自定义授权页 #7

Closed
hb0730 opened this issue Nov 11, 2020 · 11 comments
Closed

自定义授权页 #7

hb0730 opened this issue Nov 11, 2020 · 11 comments

Comments

@hb0730
Copy link

hb0730 commented Nov 11, 2020

No description provided.

@copoile
Copy link
Owner

copoile commented Nov 11, 2020

授权页面不是有吗?是自定义的啊

@hb0730
Copy link
Author

hb0730 commented Nov 11, 2020

Oauth2有一个授权页的,并非Login登录页,在auth-server 并没有找到对应的自定义授权页面

@copoile
Copy link
Owner

copoile commented Nov 11, 2020

resource/template下面

@hb0730
Copy link
Author

hb0730 commented Nov 11, 2020

spring security oauth2 页面代码在 WhitelabelApprovalEndpoint ,在 auth-server resources/template下只有login.ftl

@copoile
Copy link
Owner

copoile commented Nov 11, 2020

这个就是授权页面,授权码模式或简化模式授权的时候就是跳转到这个页面的

@hb0730
Copy link
Author

hb0730 commented Nov 11, 2020

spring security oauth2中客户端client有一个字段叫做isAutoApprove ClientDetails ,是会手动授权的

@hb0730
Copy link
Author

hb0730 commented Nov 11, 2020

image

@copoile
Copy link
Owner

copoile commented Nov 11, 2020

你这个是怎么操作的呢

@hb0730
Copy link
Author

hb0730 commented Nov 11, 2020

修改一下client auto scope就知道、可以查看clientDetails的子类

@hb0730
Copy link
Author

hb0730 commented Nov 12, 2020

selectById 其中的 autoApproveScopes.add("sever")

可以查看父类BaseClientDetails 中的boolean isAutoApprove(String scope)

@copoile
Copy link
Owner

copoile commented Nov 12, 2020

好的,最近太忙了,没时间去看,有时间会去看下

@hb0730 hb0730 closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants