我是Spring Secuirty Oauth2的新手,我需要从远程api获取访问令牌才能调用数据方法。
我的配置是
spring.security.oauth2.client.registration.nest.client-id = xxx spring.security.oauth2.client.registration.nest.client-secret = yyyy spring.security.oauth2.client.registration.nest.redirect-uri = http://localhost:8080/api/nest/userinfo spring.security.oauth2.client.provider.nest.authorization-uri = https://home.nest.com/login/oauth2 spring.security.oauth2.client.provider.nest.token-uri = https://api.home.nest.com/oauth2/access_token security.oauth2.client.token-name = access_token
spring.security.oauth2.client.provider.nest.user-info-uri = https://developer-api.nest.com
redirect uri将接收用于构建accesstoken请求的代码和统计信息,我尝试遵循spring-boot安全示例“ faceboo / github”等。不确定如何使用Spring Security处理这种流程。
应用程序运行时,它将转发到外部登录页面,但从不调用重定向端点
security.oaut2和spring.security.oauth2之间的区别是什么