首页 > 解决方案 > Spring Oauth2 PKCE 授权

问题描述

我正在配置我的 spring oauth2 以使用 PKCE 授权。如果我在浏览器上对其进行测试,它可以按预期工作,但是我在执行 Angular 部分时遇到了一些问题,因为在我进行 GET 访问后会返回默认的 spring 安全登录表单:

http://localhost:8080/oauth/authorize?response_type=code&client_id=public&redirect_uri=http://public-client/&scope=read&code_challenge=4cc9b165-1230-4607-873b-3a78afcf60c5

我遵循了本教程:https ://sultanov.dev/blog/authorization-code-flow-with-pkce-in-spring-security-oauth/

标签: angularspring-securityoauth-2.0spring-oauth2pkce

解决方案


推荐阅读