Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SchemeAuthenticate : Samlrequest is removed #31

Open
nlapointe-factory opened this issue Oct 13, 2020 · 1 comment
Open

SchemeAuthenticate : Samlrequest is removed #31

nlapointe-factory opened this issue Oct 13, 2020 · 1 comment

Comments

@nlapointe-factory
Copy link

Hi,
I have to pass the samlrequest arg in the url to the adfs entry point.
I think something is wrong in SchemeAuthenticate.js, because the search url param (which contains samlrequest) is overwrite by RelayState (line 32).
const idpLoginUrl = new URL(loginUrl.toString());
This contains the samlrequest param.
idpLoginUrl.search = 'RelayState=${request.path}';
This overwrite.

If I remove this line, samlrequest is passing.

Is there an option to preserve arguments, or remove the relaystate ?

Many thanks,

@leo300
Copy link

leo300 commented Jun 27, 2023

In SchemeAuthenticate.js use search param set

         const idpLoginUrl = new URL(loginUrl);
         idpLoginUrl.searchParams.set('RelayState', request.path);
         return h.redirect(idpLoginUrl).takeover();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants