We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Swagger file

Question
11
Views
0
Comments
edited Jan 24, 2019 10:26AM in Integrations and APIs

Summary

need to generate token using swagger

Content

using curl command - i am able to generate the token


curl -X POST "https://login.microsoftonline.com/ada8448e-faae-4047-99a6-15a17f4db850/oauth2/token" -H "accept: application/json" -H "Subscription_Key: e1140ee2416d442cbd3c5793d453fe73" -H "Content-Type: multipart/form-data" -F "grant_type=Client_credentials" -F "client_id=fd199a1e-1851-43a7-9fbf-fcdde1cdecbf" -F "client_secret=lGNcdjpdcw0a0c/l41AsFYICakC1B56a9DGzQ7vfWnk="

 

 

Generated token as follows:

"token_type": "Bearer",
"expires_in": "3600",
"ext_expires_in": "3600",
"expires_on": "1548321480",
"not_before": "1548317580",
"resource": "00000002-0000-0000-c000-000000000000",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Im5iQ3dXMTF3M1hrQi14VWFYd0tSU0xqTUhHUSIsImtpZCI6Im5iQ3dXMTF3M1hrQi14VWFYd0tSU0xqTUhHUSJ9.eyJhdWQiOiIwMDAwMDAwMi0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC9hZGE4NDQ4ZS1mYWFlLTQwNDctOTlhNi0xNWExN2Y0ZGI4NTAvIiwiaWF0IjoxNTQ4MzE3NTgwLCJuYmYiOjE1NDgzMTc1ODAsImV4cCI6MTU0ODMyMTQ4MCwiYWlvIjoiNDJKZ1lGaFdZRnQzZnhXanpGM1JsY3RTcDV6MkJnQT0iLCJhcHBpZCI6ImZkMTk5YTFlLTE4NTEtNDNhNy05ZmJmLWZjZGRlMWNkZWNiZiIsImFwcGlkYWNyIjoiMSIsImlkcCI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0L2FkYTg0N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