Select to view content in your preferred language

Using generateToken method from SessionManager class - Experience Builder Developer Edition

502
0
02-08-2024 12:27 AM
Saxina
by
Occasional Contributor

I am using ArcGIS Token authentication and don't want user interaction for the login process. I found this method from the SessionManager class to generate token but there is no detailed documentation for this.

Saxina_0-1707380523967.png

1) what are the parameters to be passed into this method : 
- portalUrl makes sense
- getTokenParam - no idea
- credentialsParam - I am assuming it is a query string containing username and password.

2) How to make this token available with the widget props to be accessible from any widget.

 

would appreciate it if someone could help me with it.

thanks

0 Replies