Authentication using java

0
Hi,   I have the following problem: my user wants to authenticate his users in a REST endpoint. Then, when this REST returns ok, i need to authenticate his user in Mendix.   Can I use some java action in the OAUTH or SSO module to do this log in? Can I use some Core class to authenticate the user?
asked
2 answers
1

See here for the Core class method to authenticate the user: https://apidocs.rnd.mendix.com/8/runtime/com/mendix/core/Core.html#authenticate(com.mendix.systemwideinterfaces.core.IContext,com.mendix.systemwideinterfaces.core.IUser,java.lang.String)

First retrieve the user to get the IUser and pass the password and context, the method retruns true if the authentication was succesful. In the Open AUthentication module there is a loinghelper class that can help you perform the complete login.

Hope this brings you a step closer to a solution for your use case.

answered
1

You can also try with this module 

https://marketplace.mendix.com/link/component/107925

for version 8 you need to upgrade the js snippet to 1.3

answered