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

On a strange and undocumented behavior of the homeRealm strategy option #140

Open
ramtob opened this issue Jul 22, 2020 · 0 comments
Open

Comments

@ramtob
Copy link

ramtob commented Jul 22, 2020

The value of the homeRealm option is sent to the identity provider as a parameter with the name whr (&whr=value). If we omit the homeRealm option, we would expect that the whr parameter will not be sent. But in fact it is sent, with an empty value (&whr=). This empty-value parameter actually caused a bug, in an ADFS environment I was working at (that’s how I got to know about all this).

It turns out that only if we set the homeRealm strategy option explicitly to a empty string (homeRealm: ‘’) the whr parameter will not be sent to the provider.

I’m not sure whether this behavior of the homeRealm option is intended. If it is, it is not documented and is error-prone. If this behavior is not intended, it is a bug.

If this is a bug, I can send a PR to fix it.

What do you think?
TIA

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

1 participant