Select to view content in your preferred language

Credentials attached to layer disallow to get the from Portal layer

149
0
01-29-2025 06:56 AM
NGAViewer
New Contributor

Hello! We are not professional in the ARCGis. We returned to our old feature. The idea was
1) To create the Polygon layer.
2) Bind this layer with OAuth 2.0. credentials.
3) Based on the Client ID and Client Secret we generated the token on our BE side by FE request
4) Then FE makes a request to display the layer on the map attaching the token

We tested flow in our free trial account before and it worked seamlessly.

Now we are faced with an issue. We got out from our test account and despite attaching the layer to credentials the same way we get the 403 with 
ArcGISAuthError: GWM_0003

So maybe (based on this topic) we do think only admin is able to make the attachments to creds and save it fresh. 

Another side of issue: after checkbox is set to bind layer with creds, we see these messages in the pop-up, then in snack bar in corresponding order:
"To use the updated item access, generate a new token."
"Item access has been updated. Generate a new token to use the updated item access."

Seems this is the cause of our error also. But we don't understand exactly how and where we should refresh the token in the most proper way and the correlation with the admin rules during credentials attachament.


We will gratefully appreciate your assistance with this question!
 

0 Kudos
0 Replies