Select to view content in your preferred language

Experience builder custom login flow

1316
6
Jump to solution
01-07-2024 07:10 AM
Saxina
by
Occasional Contributor
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
Occasional Contributor

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
6 Replies
Saxina
by
Occasional Contributor

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
Frequent 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
AbdulabnanMohammed
Occasional Contributor

Any update about custom login widget

0 Kudos
WeiYing1
Esri Regular Contributor

@AbdulabnanMohammed Thanks for asking. It is planned at 2nd quarter of next year. 

0 Kudos