Update user security info after role change (still)

1
Hey guys Obviously this question has been raised before (https://community.mendix.com/link/questions/90752, ...), but all the (very old) answers I’ve found seem to be outdated. Here is the situation : - Connected user gets a new role through a microflow - for now, he has to disconnect & reconnect in order to have the application behaving accordingly to his new rights Thanks to the “refresh page” widget (https://appstore.home.mendix.com/link/app/112595/), I thought everything would work fine, but even though the menu items are well refreshed, secured microflows still refer to his previous state, and therefore fail because of unsufficient rights. Any idea ? thx !
asked
3 answers
0

Maybe a combination of the actions sign out/sign in from https://github.com/mendix/nanoflow-commons does the trick for you?

answered
0

And this post might help: https://community.mendix.com/link/questions/93080

Only problem is that Mat Daniels blog seems to have disappeared. At least I could not find it anymore.

Regards,

Ronald

 

answered
0

I tried to use the “AutoLogin” module : https://appstore.home.mendix.com/link/app/107925/

Unfortunately, after converting it to Mx 8, I got this error :

``````

AutoLogin.LoginUserRedirect.dataView1: Error while applying context Error: AutoLogin.LoginUserRedirect.javaScriptSnippet_DataSource_1: Error while applying context Error: AutoLogin.LoginUserRedirect.javaScriptSnippet_DataSource_1: Error while applying context TypeError: obj.isCurrency is not a function Error: AutoLogin.LoginUserRedirect.dataView1: Error while applying context Error: AutoLogin.LoginUserRedirect.javaScriptSnippet_DataSource_1: Error while applying context Error: AutoLogin.LoginUserRedirect.javaScriptSnippet_DataSource_1: Error while applying context TypeError: obj.isCurrency is not a function
    at http://localhost:8080/mxclientsystem/mxui/mxui.js?637261061859099423:40:22227
    at Object.t.collect (http://localhost:8080/mxclientsystem/mxui/mxui.js?637261061859099423:35:69283)
    at Object.e.exports.applyContext (http://localhost:8080/mxclientsystem/mxui/mxui.js?637261061859099423:40:22125)
    at http://localhost:8080/mxclientsystem/mxui/mxui.js?637261061859099423:40:21913
    at a (http://localhost:8080/mxclientsystem/mxui/mxui.js?637261061859099423:35:68996)
    at Object.t.sequence (http://localhost:8080/mxclientsystem/mxui/mxui.js?637261061859099423:35:69005)
    at Object.e.exports.fireOnReady (http://localhost:8080/mxclientsystem/mxui/mxui.js?637261061859099423:40:21097)
    at http://localhost:8080/mxclientsystem/mxui/mxui.js?637261061859099423:40:21877
    at Object.t.collect (http://localhost:8080/mxclientsystem/mxui/mxui.js?637261061859099423:35:69283)
    at Object.e.exports.loadWidgetsIn (http://localhost:8080/mxclientsystem/mxui/mxui.js?637261061859099423:40:21759)

`````` 

answered