I have an Auth. Provider setup through Microsoft Access Control Service that was created using this tutorial.

Whenever I try and call Auth.AuthToken.getAccessToken('0xxx0000000000x','Microsoft Access Control Service'), it returns a null value. I have cleared my cache just in case due to this post but that unfortunately did not work for me.

Does anyone have some insight into what I'm doing wrong here?

1 Answer 1


I got the Answer from here: Stackoverflow (Custom REST controller to access Auth.AuthToken.getAccessToken returning null)

Simple Answer is: Open Authentication Provider, open on the OAuth-Only Initialization URL, login. Now you get the Accesstoken!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .