Sign In with Nanoflow

0
Hi,    I have created a custom login page using Anonymous users. But I am using the Sign In function of nanoflow.  For this, I have created an entity (Username, password).   My question is that, how can I maintain session on login or SignIn function of Nanoflow internally maintain the session? Is it right practice to use nanoflow on Login page  
asked
5 answers
0
  1. When a user sign In, Mendix creates a session for the logged in user. So you need not worry about creating a session.
  2. If you need to extend the sign in Nanoflow with other activities, then go with your custom implementation. Otherwise, It is good to use Mendix Authentication widgets for SignIn.

    Pls Accept the Answer if your doubt is cleared :)
answered
0

Hi Harshraj,

You can fix that by making the new entity as generalization from the System.User entity. It has already Association with session and name , password, …. attributes,

answered
0

Instead of a Nanoflow for the Sign in you can use a Microflow, Add your customlogic and  create a JavaAction for Signin and integrate it.

answered
0

Hi Harshraj, If you do like this you don’t need to create a session at all , It will be created automatically by Mendix.

Hi 

answered
0

Extending Rachana BP’s Answer:
Refer to Mendix API Docs for Login Java Action.
https://apidocs.rnd.mendix.com/8/runtime/com/mendix/core/Core.html#login(java.util.Map)

And refer to Mx Docs to learn how to create java actions in Mendix.
https://docs.mendix.com/howto/logic-business-rules/extending-your-application-with-custom-java/

answered