title: How to configure spring boot security OAuth2 for ADFS?
body: <p>Has anyone successfully configured Spring Boot OAuth2 with ADFS as the identity provider? I followed this tutorial successfully for Facebook, <a href="https://spring.io/guides/tutorials/spring-boot-oauth2/" rel="noreferrer">https://spring.io/guides/tutorials/spring-boot-oauth2/</a>, but ADFS doesn't appear to have a userInfoUri. I think ADFS returns the claims data in the token itself (JWT format?), but not sure how to make that work with Spring. Here is what I have so far in my properties file:</p>
  
  <pre><code>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?]
  </code></pre>