小编Eri*_*son的帖子

如何为ADFS配置Spring Boot安全性OAuth2?

有没有人成功配置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)

java spring spring-mvc spring-security spring-boot

4
推荐指数
1
解决办法
8987
查看次数

标签 统计

java ×1

spring ×1

spring-boot ×1

spring-mvc ×1

spring-security ×1