• Yashpal Yadav
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
Hello,
I would like to generate access-token of salesforce via token of Keycloak (A Third-Party open Id auth provider).
Is it possible? if yes then what steps I should follow for the same.

I configured salesforce auth provide with below mention steps:

1. Provider Type = Open ID Connect
2. Name = Keycloak
3. Authorize Endpoint URL = https://myhost.com/auth/realms/MyRealm/protocol/openid-connect/auth
4. Token Endpoint URL = https://myhost.com/auth/realms/MyRealm//protocol/openid-connect/token
5. User Info Endpoint URL = https://myhost.com/auth/realms/MyRealm//protocol/openid-connect/userinfo
6. Registration Handler = AutocreatedRegHandler1593587038560 (Auto Generated)
7. Execute Registration As = Yashpal Yadav (Manager user)

8. click on save button for create auth provider.

9. After saving, I got 5 points I added "Callback URL" into Keycloak as "Redirect URL"
10. I called "Test-Only Initialization URL" it's working fine.
11. When I called "Single Sign-On Initialization URL" then I got 

"NO_ACCESS: Unable to find a user." error. 

I don't know what I am missing? Please help me how can I resolve the above error.