-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
Move the clock drift logic to when checking if expired instead of removing from the actual expire time stored
|
{ | ||
if (token == null) | ||
return false; | ||
if (token is null) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unit tests? Docs?
Helpers
toTokenHelpers
and change frominternal
topublic
GetResourceOwnerPasswordTokenAsync
toTokenClient
HasExpired
extension method toToken
to check for expired tokensArray.Empty
overnew List<>