Generating access token

adigelli
Kilo Contributor

Hi All,

I am using REST API, using client id and client secret i can get the access token using POST request

curl -d "grant_type=password&client_id=xxxxx&client_secret=xxxxx&username=admin&password=xxxxx##" https://devxxxx.service-now.com/oauth_token.do

Can i know how can get the access token using Authorization code.  

I have seen documents but its not clear. Can any one help me on this.

Thanks in Advance,

Aditya.

5 REPLIES 5

Chuck Tomasi
Tera Patron

HI,



I have seen that, it accepts only grant_type as "password" or "refresh token".



Is there any grant types like grant_type as auth_code or code.



Can you confirm on this.



Thank,


Aditya.


Seeing if joshnerius has any thoughts on this one.


adigelli
Kilo Contributor

Hi tomasi,



Have you got any chance to get any update on this,



Thanks,


Aditya,