You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jweDecrypt is no longer an allowed symbol on the Client interface, it is instead an option passed to functions that may encounter encrypted assertions
specifying Ed448 curve for EdDSA is no longer supported, EdDSA is now just an alias for the fully-specified Ed25519 JWS algorithm
assertions signed with an Ed25519 CryptoKey will now use the Ed25519 JWS alg value instead of EdDSA. This can be reverted using the modifyAssertion symbol export
the audience of a Private Key JWT and Client Secret JWT client assertions is now just the issuer identifier
remove modifyAssertion from the PrivateKey interface
optional (non-repudiation) signature validation of ID Token JWS Signatures is now done the same way as JWT UserInfo and JWT Introspection is done, with a Response instance rather than a TokenEndpointResponse object
validateJwtIntrospectionSignature is now validateApplicationLevelSignature
validateJwtUserInfoSignature is now validateApplicationLevelSignature
validateIdTokenSignature is now validateApplicationLevelSignature
DPoP request options are now obtained by calling the DPoP() exported function. This returns a handle that also maintains its own LRU nonce caches
client authentication is now an explicit argument to authenticated functions
processAuthorizationCodeOpenIDResponse() method was removed in favour of processAuthorizationCodeResponse()
processAuthorizationCodeOAuth2Response() method was removed in favour of processAuthorizationCodeResponse()
All grant functions that execute against the Token Endpoint will now validate ID Token when there is one in the response. This has already been the behaviour of functions such as processRefreshTokenResponse() or processDeviceCodeResponse()
Presence of auth_time is now required in all ID Tokens if client.default_auth_time is set
all functions now reject interacting with non-TLS HTTP endpoints. You can use the allowInsecureRequests in the HttpRequestOptions interface to revert this behaviour.
removed the isOAuth2Error() helper, all functions that used to possibly return an OAuth2Error now reject with ResponseBodyError or AuthorizationResponseError instead
removed parseWwwAuthenticateChallenges(), all functions verify process Response now reject with WWWAuthenticateChallengeError instead
removed protectedResourceRequest() now rejects with WWWAuthenticateChallengeError when the Response has one
Features
add a counterpart process method to genericTokenEndpointRequest (848f3f6)
add a helper function for DPoP retry management (06493e3)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
⚠ BREAKING CHANGES
DPoP()
exported function. This returns a handle that also maintains its own LRU nonce cachesprocessAuthorizationCodeOpenIDResponse()
method was removed in favour ofprocessAuthorizationCodeResponse()
processAuthorizationCodeOAuth2Response()
method was removed in favour ofprocessAuthorizationCodeResponse()
processRefreshTokenResponse()
orprocessDeviceCodeResponse()
auth_time
is now required in all ID Tokens if client.default_auth_time is setallowInsecureRequests
in theHttpRequestOptions
interface to revert this behaviour.isOAuth2Error()
helper, all functions that used to possibly return an OAuth2Error now reject with ResponseBodyError or AuthorizationResponseError insteadparseWwwAuthenticateChallenges()
, all functions verify processResponse
now reject withWWWAuthenticateChallengeError
insteadprotectedResourceRequest()
now rejects withWWWAuthenticateChallengeError
when the Response has oneFeatures
Fixes
Documentation
Refactor
This discussion was created from the release v3.0.0.
Beta Was this translation helpful? Give feedback.
All reactions