Oauth 2.0: getting commit failed exception...

hi team, we are trying to work on a POC wherein we are connecting to a proprietary opened connect provider and trying to authenticate / authorize users. Now, post this, since, we don't have a user repository that mendix understands (for. ex. mendix db), we are trying to override the context by filling the system.user / administration.account objects with the logged in user credentials and then trying to initialize it / createsession out of it. Now, we see that the core.getuser() function doesn't retrieve user which has been initialized using the method user.initialize(context, administrator.account mendix object). In order to handle this, we tried commiting the user to mendix db by using user.commit(context); instruction. But, this is giving error saying commit failed...can someone help here?    
0 answers