Login in Mendix using APIs response

I want to create a login page, such that if I login from that page then it need to login into mendix using security. But I don’t what to save user’s detail and password in entity first. I want to fetch user detail from an API by sending a username and password as parameter that API also contain some role, so if the response is getting from that API then login user with the appropriate user role.
1 answers

Use a microflow in the navigation as home. In that microflow do the API stuff and based on the response adjust the user roles. Then continue to the page the user should go to.