<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z000091MNOjCAOOkta Classic EngineAuthenticationAnswered2023-09-27T05:15:14.000Z2023-04-04T10:34:10.000Z2023-04-05T15:20:21.000Z

chandraz.35928 (Customer) asked a question.

Login into okta enabled application using cli with curl command.

How to get access token with curl command from cli. I am able to get session token. But I want curl commands to get access token and login into application with access token. I am using following command to get access token

curl -v -X POST -H "Accept: application/json" -H "Content-Type: application/json" -d '{

 "username": "mailid",

 "password": "***",

 "options": {

   "multiOptionalFactorEnroll": false,

   "warnBeforePasswordExpired": false

 }

}' "https://dev-0**-admin.okta.com/api/v1/authn"


This question is closed.
Loading
Login into okta enabled application using cli with curl command.