Select to view content in your preferred language

Experience builder custom login flow

873
4
Jump to solution
01-07-2024 07:10 AM
Saxina
by
New Contributor II
How to allow user to login after clicking a "Sign In" button in Experience builder application, without using the default login, which shows login popup on page load itself.
0 Kudos
1 Solution

Accepted Solutions
Saxina
by
New Contributor II

I have achieved it by creating custom widget for user login and making use of SessionManager class.
API reference link https://developers.arcgis.com/experience-builder/api-reference/jimu-core/SessionManager/

 

View solution in original post

0 Kudos
4 Replies
Saxina
by
New Contributor II

I have achieved it by creating custom widget for user login and making use of SessionManager class.
API reference link https://developers.arcgis.com/experience-builder/api-reference/jimu-core/SessionManager/

 

0 Kudos
Ming
by
Occasional Contributor

@Saxina @WeiYing1 

Hi, can you please show some example code? My following code got error:

Code:

const sessionManager = new SessionManager()
      const signInParams = {
        desUrl: 'https://abc.com/portal/home',
        popup: true
      }
      const userSession = await sessionManager.signIn(signInParams)
 
Error:
Cannot read properties of undefined (reading 'abc.com/portal')
 
---------
Thanks,
Ming
0 Kudos
WeiYing1
Esri Regular Contributor

Hi @Saxina ,

Thanks for your feedback and glad that your found a solution by yourself.
We are working on a Login widget that might solve this problem. 

Thanks,
Wei 

0 Kudos
ShengnanLou
New Contributor

Hi Wei,

Is there any update on the Login widget? Thanks!

0 Kudos