0 Replies Latest reply on Jan 9, 2017 3:13 AM by AnibalS

    Non Web Application Flow - simple auth token / access_token




      I'm trying to generate the access_token for a Non Web Application Flow. OAuth | PhoneGap Docs


      curl -X POST https://build.phonegap.com/authorize?client_id=abcdef&client_secret=123456&auth_token=789hij


      Firstly, in the chapter of OAuth there is no reference about how auth_token must be generated. There is a mention about Account Settings but it is not shown there. In the next chapter, it is shown how to generate it from command line: API Authentication | PhoneGap Docs


      Secondly, I generated auth_token with the following command:


      $ curl -u xxxx@yyyyyy.com -X POST -d "" https://build.phonegap.com/token


      Now, I have the auth_token but when I try to generate the access_token, it returns this error message:


      $ <html><body>You are being <a href="https://build.phonegap.com/people/sign_in">redirected</a>.</body></html>


      How can an access_token be generated for the Non Web Application Flow?


      Best Regards,