Björn Schläfli Posted April 12, 2022 Share Posted April 12, 2022 I've created an nfactor flow: 1. Loginschema DropDown.xml with my 2 configured environment names 2. As policy added my radius policy The user lands on the gateway page and is shown the username, password and the drop-down with the environments. Then I want to query the http body via session policies in order to forward the user to the appropriate StoreFront based on his selection. This doesn't work with Radius with multi-factor because the http body changes on the second page for the mTan and what I want to query is no longer in the http body. So I think I would have to create a cookie. I used https://docs.citrix.com/en-us/citrix-adc/current-release/aaa-tm/authentication-methods/multi-factor-nfactor-authentication/set-a-cookie-using- nfactor.html created an nFactor for Cookie and added that as the next factor after the drop-down / radius policy. However, the cookie is not set. Now I have no idea how to proceed here. Does somebody has any idea? For my internal gateway it works with session policies because it's a ldap single-factor auth. Link to comment Share on other sites More sharing options...
Björn Schläfli Posted April 20, 2022 Author Share Posted April 20, 2022 I've found a solution with a cookie. I've used the domaindropdown.xml and cookie.xml login schema from Citrix in combination. Also the configuration of https://docs.citrix.com/en-us/citrix-adc/current-release/aaa-tm/authentication-methods/multi-factor-nfactor-authentication/set-a-cookie-using- nfactor.html in script.js with following enhancement: $(document).ready(function() { function readdomaincookie(){ var userdomain= $('#domain option:selected').val(); document.cookie = "domain_cookie="+userdomain+";path=/"; } document.getElementById('loginBtn').addEventListener("click",readdomaincookie); }); 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now