Hi,
I am planning to set-up a native app in OKTA with grant type as Resource Owner Password. My goal is to create an API which returns the access token. I am using below curl request:
curl
–request POST
–url https://<>.oktapreview.com/oauth2/ausikiy37irRh45HS0i7/v1/token
–header ‘accept: application/json’
–header ‘content-type: application/x-www-form-urlencoded’
–header ‘Authorization: Basic MG9haWsycTF2OHhGbTBnaU4waDc6SGNGaXlSZXpXZXJXcFVzWE1aTFp6YzAwWFUxeDZoU3NoS0Z5b3ZyZg==’
–data ‘grant_type=password&username=<>password=<>&scope=custom_scope’
Users are created through ADFS, so would this approach of getting access token work for my case?
Thanks,
Varun