How to include a variable in the security provider redirection

How to include a variable in the security provider redirection


Thanks

@Teodor it’s possible ?

What type of variable are you planning to include in the redirect? Is it a User ID…?

GET variable exemple redirect index.phph?etablissemment=GET_etablissement

Try this:

This may also help

1 Like

Maybe have a redirection page. So you have a browser goto action point to a page which includes a server action for the user profile, looks up the user after login (can have a security restrict on the action).

Would be a blank page with a pre-loader and a single server action.

The server action tag on this page would look something like this:

<dmx-serverconnect id="getUser" url="dmxConnect/api/signInActions/signIn/getUserProfile.php" dmx-on:success="appBrowser.goto(getUser.data.userProfile[0].platformGroup == '200' ? 'userDashboard.php' : 'signInUser.php')"></dmx-serverconnect>

If the user matched the criteria would be sent on to user dashboard if not sent to sign in page. Can apply multiple rules, for multiple criteria or groups etc. If unauthorised would be sent to sign in page (if the above action had a security restrict placed within it, likewise for a security provider within the page).

1 Like

Thanks everyone, I’ll try and let you know.

1 Like