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

Add ShowSignInLink to OAuthPromptSettings #5906

Merged
merged 2 commits into from
Oct 7, 2021
Merged

Conversation

mrivera-ms
Copy link
Contributor

@mrivera-ms mrivera-ms commented Oct 7, 2021

Fixes #5887

Description

The decision of showing a SignIn link depends on the channel Id in use. This change adds an optional value to OAuthPromptSettings to override the default implementation in

private static bool ChannelRequiresSignInLink(string channelId)

Testing

A data driven test is being added that verify the link value is calculated correctly:

image

@mrivera-ms mrivera-ms requested a review from a team as a code owner October 7, 2021 04:05
Copy link
Contributor

@gabog gabog left a comment

Choose a reason for hiding this comment

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

See if my comment on the test make sense. Otherwise ignore it and merge.

Copy link
Contributor

@gabog gabog left a comment

Choose a reason for hiding this comment

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

Love the test!

@mrivera-ms mrivera-ms merged commit 80c4720 into main Oct 7, 2021
@mrivera-ms mrivera-ms deleted the moniriv/issue5887 branch October 7, 2021 18:13
mrivera-ms added a commit that referenced this pull request Nov 9, 2021
* Add ShowSignInLink to OAuthPromptSettings

* Refactor tests
mrivera-ms added a commit that referenced this pull request Nov 9, 2021
* Add ShowSignInLink to OAuthPromptSettings

* Refactor tests
mrivera-ms added a commit that referenced this pull request Nov 9, 2021
* Add ShowSignInLink to OAuthPromptSettings

* Refactor tests
mrivera-ms added a commit that referenced this pull request Nov 10, 2021
… (#5966)

* Add ShowSignInLink to OAuthPromptSettings (#5906)

* Add ShowSignInLink to OAuthPromptSettings

* Refactor tests

* Update test adapter to only override channel Id when the value is not set by the test.
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.

Provide an Override for ChannelRequiresSignInLink in OAuthPrompt
3 participants