有没有人成功配置Spring Boot OAuth2与ADFS作为身份提供商?我在Facebook上成功地使用了本教程,https://spring.io/guides/tutorials/spring-boot-oauth2/,但ADFS似乎没有userInfoUri.我认为ADFS在令牌本身(JWT格式?)中返回声明数据,但不确定如何使用Spring.这是我目前在我的属性文件中的内容:
security:
oauth2:
client:
clientId: [client id setup with ADFS]
userAuthorizationUri: https://[adfs domain]/adfs/oauth2/authorize?resource=[MyRelyingPartyTrust]
accessTokenUri: https://[adfs domain]/adfs/oauth2/token
tokenName: code
authenticationScheme: query
clientAuthenticationScheme: form
grant-type: authorization_code
resource:
userInfoUri: [not sure what to put here?]
Run Code Online (Sandbox Code Playgroud)