Select to view content in your preferred language

Programatically generate tokens from the portal rest

2113
2
Jump to solution
04-12-2017 07:15 PM
Alexwang
Frequent Contributor

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
Frequent Contributor

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
Frequent Contributor

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

BrianMyrick
Deactivated User

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