Freitag, 5. Juni 2015

Debug azure mobile service with Postman using OAuth 2

I had some problems finding the right tokens to access backend functions with         [AuthorizeLevel(AuthorizationLevel.User)]
from within postman so i thought i share how i found it. 

Go to 

https://<URL-APP-ID>.azure-mobile.net/login/<YourProvider> 
in my case: 
https://plany2.azure-mobile.net/login/google

in the redirect url you will find the token. Copy paste it here: http://meyerweb.com/eric/tools/dencoder/

convert it and then take the authenticationToken and put it into postman header as X-ZUMO-AUTH. 

Thats allready it. 

Keine Kommentare:

Kommentar veröffentlichen