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

OAuth Authenticator updates #70

Merged
merged 5 commits into from
Feb 19, 2024
Merged

OAuth Authenticator updates #70

merged 5 commits into from
Feb 19, 2024

Conversation

MrSmoke
Copy link
Member

@MrSmoke MrSmoke commented Feb 19, 2024

  • Rename Helpers to TokenHelpers and change from internal to public
  • Add GetResourceOwnerPasswordTokenAsync to TokenClient
  • Add HasExpired extension method to Token to check for expired tokens
    • Move the clock drift logic to when checking if expired instead of removing from the actual expire time stored
  • Add missing configure awaits for old .net
  • Use Array.Empty over new List<>

@MrSmoke
Copy link
Member Author

MrSmoke commented Feb 19, 2024

@happymancoder

[17:32] looks to good to me

@MrSmoke MrSmoke merged commit 7b3e009 into master Feb 19, 2024
4 checks passed
@MrSmoke MrSmoke deleted the token-updates branch February 19, 2024 07:38
{
if (token == null)
return false;
if (token is null)

Choose a reason for hiding this comment

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

@@ -4,15 +4,17 @@

public static class TokenExtensions
{
public static bool IsValid(this Token token)
public static bool HasExpired(this Token token)

Choose a reason for hiding this comment

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

Unit tests? Docs?

using IdentityModel.Client;
using Tokens;

public static class TokenHelpers

Choose a reason for hiding this comment

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

Unit tests? Docs?

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.

3 participants