Programatically generate tokens from the portal rest

1928
2
Jump to solution
04-12-2017 07:15 PM
Alexwang
Occasional Contributor II

Hello All, 

Can anybody tell me the correct way to generate a token from the portal rest endpoint? the following returned "method not supported". 

https://www.abc.com/portal/sharing/rest/generateToken?username=<username>&password=<password>&client...

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Alexwang
Occasional Contributor II

the generateToken is a post only. I was able to use codes via a post to generate a token from portal. 

View solution in original post

2 Replies
Alexwang
Occasional Contributor II

the generateToken is a post only. I was able to use codes via a post to generate a token from portal. 

BrianMyrick
New Contributor

I'm trying to do similar, but when I send the POST, I get an error that username and password should not be sent via query parameters. This is true even if I set the allowHttpPostQueryParams = true.

Any ideas what might be wrong on my end?

0 Kudos