Skip to content

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.

2 participants