How to setup MyTrailHead subdomain results in Auth Provider error No_OAuth_Token?

 I am trying to set up a MyTrailhead subdomain on a sandbox org as mentioned here:


https://help.salesforce.com/s/articleView?id=sf.mth_set_up_your_mth_subdomain_and_namespace.htm&type=5


My user is a system admin user that has a permission set assigned that gives the MyTrailhead licensing and permissions (all of them).


After visiting https://trailhead.salesforce.com/en/subdomain/login-required, I logged in using the Salesforce login for my sandbox instance.


I am then sent to the following url : https://trailblazer.me/AuthProviderError?ErrorCode=No_Oauth_Token&ErrorDescription=invalid_grant+authentication+failure&ProviderId=SomeID <==== where is that ID coming from?


And it says "Hmm, that didn't work. Something went wrong with connecting the Auth Provider to your account. Please give it another try."


I looked in login history and it shows that the login status was successful for the 'remote access client'.


I also looked at the auth provider settings in my sandbox instance and was not sure if this was because of an incorrect setting there.


I went under my user account and revoked trailblazer.me OAth connected App and tried again but no good. I also whitelist the IP range it was showing under Login history for the Remote Access client but no good. What can I do to troubleshoot this further?

FYI I do not have access to the production org. Could this be why?

Answered by David EDWARDS

My experience is that you cannot do this from a sandbox. I got the same error and when I tried everything from production the problem was solved. I have never seen such a frustrating mix of products as SFDC and myTrailhead - I still don't have it working to everyone's satisfaction.


Your Answer

Interviews

Parent Categories