Unable to generate Token on Secure site

7070
10
08-12-2013 04:15 AM
KhurramShahzad
New Contributor
Hi Everyone,

I am struggling to consume my secure service. When I use my service while it is insecure, it works just fine but after we secure it, it doesn't work. After some research I found out that I have to pass token along with my service call. Now, I am trying to generate token but getting error. I have attached login screen and error.

Username/password is working fine when I loggon to the site but doesn't work here when I try to generate token. I have looked into user roles and it has almost admin rights.

Any help regarding this will be highly appreciated.

Regards,
0 Kudos
10 Replies
by Anonymous User
Not applicable
Original User: mattlane86

Are you filling in the username, password, and http referrer info?
0 Kudos
ShreyasVakil
Occasional Contributor II
Hi kshahzad,

I saw a bug submitted for the same. Here is the bug details.

It has been fixed in ArcGIS Server 10.2 .

As a workaround try generating token from http://<servername>:6080/arlgis/tokens/ instead of using web adapter.
0 Kudos
by Anonymous User
Not applicable
Original User: kshahzad

mattlane86,
Yes i am filling in username and password but I am not passing http referrer info (since it is optional).


svakil,
I am using the same web reference(http://servername/arlgis/tokens/) that you have mentioned to generate token (please see attachment in my original post). Can you send me url again, the one you have mentioned is not coming up (please copy/paste full url here).

Thanks for your help.
0 Kudos
ShreyasVakil
Occasional Contributor II

svakil,
I am using the same web reference(http://servername/arlgis/tokens/) that you have mentioned to generate token (please see attachment in my original post). Can you send me url again, the one you have mentioned is not coming up (please copy/paste full url here).

Thanks for your help.


Here is the explanation of the issue:

1. NIM084195 is a bug that has been logged regarding an issue creating tokens and using a web adaptor named anything other than 'ArcGIS'.  In your case it is "arlgis".

2. The workaround for NIM084195 is to use a web adaptor named 'ArcGIS'.

This has been fixed in version 10.2 of ArcGIS Server. You can also try creating token bypassing the web adapter directly from the port 6080 where ArcGIS Server is installed.

I am assuming you have ArcGIS Server 10.1 or 10.1 SP1 .
0 Kudos
by Anonymous User
Not applicable
Original User: kshahzad

Savkil,

Thank you so much for giving me valuable solutions. After changing the url, I am getting "Client id cannot be determined". ID is correct because I am passing the same credentials to loggon to the site and the server. Just for FYI, I am only entering login/password and not passing the HTTP referer.

Any idea?
0 Kudos
ShreyasVakil
Occasional Contributor II
Savkil,

After changing the url, I am getting "Client id cannot be determined"


What does your URL look like? Did you use web adaptor name as 'ArcGIS'?
0 Kudos
by Anonymous User
Not applicable
Original User: kshahzad

Hi Svakil,

Yes it does has it. Here is my url : http://servername:6080/arcgis/rest/services

Thanks,
0 Kudos
KhurramShahzad
New Contributor
Hi Svakil,

Any more suggestions on my request?
0 Kudos
by Anonymous User
Not applicable
Original User: wherewhy

Anyone have an answer to this? I'm having the same issue.
0 Kudos