--I have very little experience with HTML and have followed the examples and suggestions in the forum. However, I am still having some issues. The support staff with the endpoint assure me that this should be a GET.
I am trying to get an authentication token, passing Client ID and Client Secret.
Here is my code:
URL = "" href="https://login.microsoftonline.com/+" target="_blank">https://login.microsoftonline.com/+
535b2d87-664f-415a-b7fa-fd3f1086d450/oauth2/token';
FormData = 'grant_type=client_credentials'
+ '&client_id=' + %TRIM(ClientID)
+ '&client_secret=' + %Trim(ClientSecret);
http_xproc( http_point_addl_header: %paddr(AddHeader1));
rc = http_req('GET'
: URL
: '/tmp/httpauth.json'
: *Omit
: *Omit
: FormData);
I have also tried:
URL = "" href="https://login.microsoftonline.com/+" target="_blank">https://login.microsoftonline.com/+
535b2d87-664f-415a-b7fa-fd3f1086d450/oauth2/token'
+ '?grant_type=client_credentials'
+ '&client_id=' + %TRIM(ClientID)
+ '&client_secret=' + %Trim(ClientSecret);
http_xproc( http_point_addl_header: %paddr(AddHeader1));
rc = http_req('GET'
: URL
: '/tmp/httpauth.json');
They have told me that “grant_type”, “client_id”, and “client_secret” need to be in the body of the request. At this point, I am stumped. Any help is greatly appreciated.
Corby Weaver - Core-Mark Midcontinent, Inc.
Iowa Division IT
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi
-- _______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/mailman/listinfo/ftpapi