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

Feature/Login Request Relay State #404

Closed
wants to merge 1 commit into from

Conversation

natevecc
Copy link

Add support for relayState when creating the SAML request using createLoginRequest. This is essentially the same implementation that was done in #257 but without the other changes not related to relay state. This would make it easier to use relay state in a backwards compatible way.


const metadata: any = { idp: entity.idp.entityMeta, sp: entity.sp.entityMeta };
const spSetting: any = entity.sp.entitySetting;
const relayState = entity.relayState ?? entity.sp.entitySetting.relayState;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be relayState ??= spSetting.relayState;? I'm not sure how this even builds currently because you have relayState parameter there and const variable with same name.

@natevecc
Copy link
Author

natevecc commented Sep 9, 2021

I'm closing this because as of version 2.7.7 the issue I had is no longer occurring.

@natevecc natevecc closed this Sep 9, 2021
@natevecc natevecc deleted the feature/request-relay-state branch September 9, 2021 13:25
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

Successfully merging this pull request may close these issues.

None yet

2 participants