Skip to content

Conversation

@EricDahlvang
Copy link
Member

Fixes #3627

This PR also prioritizes the timeout check before RecognizeTokenAsync, since RecognizeTokenAsync has side affects.

@EricDahlvang EricDahlvang requested review from a team as code owners August 6, 2020 03:07
tomlm
tomlm previously requested changes Aug 6, 2020
Copy link
Contributor

@tomlm tomlm left a comment

Choose a reason for hiding this comment

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

🕐

@EricDahlvang EricDahlvang requested a review from a team as a code owner August 6, 2020 23:08
@EricDahlvang EricDahlvang requested a review from tomlm August 6, 2020 23:08
Copy link
Member

@axelsrz axelsrz left a comment

Choose a reason for hiding this comment

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

:shipit:

@cleemullins
Copy link
Contributor

@carlosscastro We beleive this is good to merge. Tom has looked at it, and Eric confident. Just because OAuth and SSO are such nuanced areas, can you take a quick peek before we merge?

|| IsTokenResponseEvent(dc.Context)
|| IsTeamsVerificationInvoke(dc.Context)
|| IsTokenExchangeRequestInvoke(dc.Context);
var hasTimedOut = isTimeoutActivityType && DateTime.Compare(DateTime.Now, expires) > 0;
Copy link
Member

Choose a reason for hiding this comment

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

DateTime.UtcNow

Copy link
Member

Choose a reason for hiding this comment

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

Also, it's more readable if you compare dates with the operator IMO instead of DateTime.Compare, i.e. date1 > date2

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.

OAuthPrompt timeout doesn't work in Teams

6 participants