function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Maros Sitko1Maros Sitko1 

Unable to access to id_token from Open Id (AWS Cognito as Auth. Provider)

Hello, I am trying to setup AWS Cognito as Auth. Provider. I followed instructions in https://help.salesforce.com/articleView?id=sso_provider_amazon.htm&type=5. Configuration partially works.
I need to have access to id_token in my class which implements interface 'Auth.RegistrationHandler'. I want to read additional field there and also reuse this token for authorisation our callouts to another system. Is it possible to do it? I tried to search in forums and I haven't found anything.
Thank you for your quick response
AbhishekAbhishek (Salesforce Developers) 
Maros,

I suspect it's not possible.

For reference check this,

https://help.salesforce.com/articleView?id=remoteaccess_oauth_tokens_scopes.htm&type=5


Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.
Konstantin PanovKonstantin Panov
Maros, did you find a workaround for this?