generateToken for hosted service

Discussion created by nilsbabel on May 28, 2014
Latest reply on Jun 3, 2014 by nilsbabel
I'm trying to use this sample to generate a token for a hosted feature service:

However, the response sends back a 404 status.  Does anybody know what the server and port number should be for AGOL for organizations?  I've tried several variations:

I've tried several port numbers including 6080, 8080, 6443, and 443.  443 is the only port that will actually create a connection. 

For the tokenURL I have tried:

I feel like I must just have the wrong server, url, or port number.