Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 81227

How do i login a webservice user from java?

$
0
0

I build a custom request handler that handled incoming requests with BasicAuthentication. Because i did not want to bypass the Mendix security i added a piece of code that tries to login and generates a user context based on that. However, I get an error that a webservice user is not allowed to login.

I use the following snippet to achieve the above:

final String[] values = credentials.split(":",2);    
IContext context = Core.login(values[0],values[1]).createContext();

Viewing all articles
Browse latest Browse all 81227

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>