Repository navigation
Getting IDP access code #19891
|
Hey, I'm using https://github.com/wadahiro/keycloak-discord to add discord as an Identity Provider, I have configured a new realm and started using the social provider to login with no issues. I'm trying to get the original access code to make calls to the discord API using the following keycloak API endpoint /realms/{realm}/broker/discord/token and I get the following error message: I have read the documentation presented on the following URL https://www.keycloak.org/docs/latest/server_admin/#retrieving-external-idp-tokens but I don't understand how to make my client get the client "broker" role "read-token" under the "resource_access" part of the JWT, I've tried implementing the solutions described here to no avail: https://keycloak.discourse.group/t/unable-to-retrieve-upstream-identity-providers-original-token/2267/5 Am I missing any steps? If you have any information on how to do this with the new admin ui it would really help me out |
I solved this by going into Configure > Realm settings > User registration > Default Roles > Filter by clients > Select broker read-token > Assign