Select to view content in your preferred language

Generate a tokens

605
2
Jump to solution
10-20-2024 07:48 AM
Labels (1)
OsamaAbualreesh
New Contributor

Hello
Can you guys help me with generate tokens? I'm using a student account to sign in to arcGIS online through my university portal. I created an application and it gave me
 Client ID

Client Secret

Temporary Token 

but once I try to access a featured layer with this tokens it gives me invalid tokens as you can see in the picture.
as you can see also https://www.arcgis.com/sharing/rest/generateToken
gives me a empty page

OsamaAbualreesh_0-1729435664727.png

 




this for layerthis for layerthis for generate tokens linkthis for generate tokens link

0 Kudos
1 Solution

Accepted Solutions
CodyPatterson
MVP Regular Contributor

Hey @OsamaAbualreesh 

I'm not entirely confident that student accounts can generate the tokens, but this will clear it up for me. Try using this link here:

https://www.arcgis.com/sharing/generateToken?f=json&username={username}&password={password}&referer=...

And replace username with your username, and password with your password. This should generate a token for you.

Here is the API documentation as well:

https://developers.arcgis.com/rest/users-groups-and-items/generate-token/

Cody

View solution in original post

0 Kudos
2 Replies
CodyPatterson
MVP Regular Contributor

Hey @OsamaAbualreesh 

I'm not entirely confident that student accounts can generate the tokens, but this will clear it up for me. Try using this link here:

https://www.arcgis.com/sharing/generateToken?f=json&username={username}&password={password}&referer=...

And replace username with your username, and password with your password. This should generate a token for you.

Here is the API documentation as well:

https://developers.arcgis.com/rest/users-groups-and-items/generate-token/

Cody

0 Kudos
OsamaAbualreesh
New Contributor

Thank you so much,
Yeah most properly student account doesn't generate a token.

 

0 Kudos