We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a29a848 commit 2413c6eCopy full SHA for 2413c6e
app/domain/authentication/authn_jwt/v2/strategy.rb
@@ -83,13 +83,15 @@ def callback(request_body:, parameters: nil)
83
raise Errors::Authentication::AuthnJwt::MissingToken
84
end
85
86
+ # TODO: Should `iat` be required?
87
+ #
88
# The check for audience "should" go away if we force audience to be
89
# required
90
manditory_claims = if @authenticator.audience.present?
- %w[exp aud iat]
91
+ %w[exp aud]
92
else
93
# Lots of tests pass because we don't set audience :( ...
- %w[exp iat]
94
+ %w[exp]
95
96
if (missing_claim = (manditory_claims - token.keys).first)
97
raise Errors::Authentication::AuthnJwt::MissingMandatoryClaim, missing_claim
0 commit comments