Forum Discussion

AOSulli's avatar
AOSulli
Frequent Visitor
2 years ago
Solved

retrieve token api call with content type x-www-form-urlencoded

hello, i am trying to retrieve a bearer token using the web activity in febaric pipelines.  the content type is - x-www-form-urlencoded how do i put in the body details?  grant_type =  client_id...
  • AOSulli's avatar
    AOSulli
    2 years ago

    Hello - this doesnt work - i get - HTTP Status 500 – Internal Server Error

     

    however when i use - 

    content type - application/x-www-form-urlencoded

     

    and in the body i put 

    grant_type=client_credentials&client_id=<encoded client id>&client_secret=<encoded client secret>

     

    then it works.