Get paramters (token) from URL

0
hello  We are trying to get a token from a URL of another site, where our users would login and then be redirected to our mendix site. We need the token to get the info of which user is logging in, which we will use to know which permissions they'll get in our mendix site. So, how do we get that token?  
asked
2 answers
0

Is deeplink an option?

answered
0

It sounds like you are redirecting the user to an external site for them to login, and the external site calls back to Mendix with the token. 

If the external site is passing the token as a parameter in the GET request query string, then I would setup a Deeplink to handle this request and let the developer of the external site redirect to this endpoint. In the handling microflow for the deep link you can then extract the value from the query string, and validate it as you see fit. You would need to make this token single use so the URL can’t just be bookmarked and the external site validation be skipped.

https://docs.mendix.com/appstore/modules/deep-link

Hope this helps.

answered