Bump Auth0.AspNetCore.Authentication from 1.7.1 to 1.9.0#246
Open
dependabot[bot] wants to merge 1 commit into
Open
Bump Auth0.AspNetCore.Authentication from 1.7.1 to 1.9.0#246dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
--- updated-dependencies: - dependency-name: Auth0.AspNetCore.Authentication dependency-version: 1.9.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated Auth0.AspNetCore.Authentication from 1.7.1 to 1.9.0.
Release notes
Sourced from Auth0.AspNetCore.Authentication's releases.
1.9.0
Added
HttpContext.GetAccessTokenForConnectionAsync(AccessTokenForConnectionRequest, string? scheme = null)extension serves an unexpired connection token from the session cache when possible, and otherwise exchanges the refresh token and persists the result.AccessTokenForConnectionRequestcarriesConnection(required), an optionalLoginHint(the provider-side IdP user ID), andForceRefreshto bypass the cache.nullrather than throwing when no refresh token is present (firesOnMissingRefreshToken) or the exchange is rejected (firesOnAccessTokenRefreshFailed).HttpContext.CustomTokenExchangeAsync(CustomTokenExchangeRequest)extension performs the exchange.CustomTokenExchangeRequesttakesSubjectTokenandSubjectTokenType(required), plus optionalAudience,Scope, anActorToken/ActorTokenTypedelegation pair, andOrganization.CustomTokenExchangeResultreturns the exchanged tokens (AccessToken,IdToken,RefreshToken,ExpiresIn,Scope) and the decodedact(actor) claim for delegation flows.subject_tokenmust be non-empty and un-prefixed;subject_token_typemust be a valid 10–100 character URI, rejecting the reservedurn:ietf:andurn:auth0:namespaces; an actor token requires its matching type). Failures surface asCustomTokenExchangeException, which carriesStatusCode,Error, andErrorDescriptionbut never token-bearing bytes.OnTokensRefreshedevent on token refresh #254 (kailash-b) - previously, refreshing an expired access token persisted the new tokens but left theClaimsPrincipalat its login-time snapshot for the life of the refresh token. Two opt-in additions let applications react to a successful primary refresh (fixes #174).Auth0WebAppWithAccessTokenOptions.RebuildPrincipalOnRefresh(defaultfalse) rebuilds theClaimsPrincipalfrom the refreshedid_tokensoUser.ClaimsandUser.Identity.Namereflect current user information.Auth0WebAppWithAccessTokenOptions.RefreshClaimsValidationTypecontrols how the refreshedid_tokenis validated before its claims replace the principal (only consulted whenRebuildPrincipalOnRefreshistrue):Full(default) validates signature against the cached JWKS plus issuer/audience and business-rule checks, whileSkipSignaturetrusts the back-channel TLS exchange and runs only the business-rule checks.Auth0WebAppWithAccessTokenEvents.OnTokensRefreshedevent fires after every successful primary refresh; theAccessTokenRefreshedContextcarries the refreshedAccessToken,IdToken,RefreshToken(null when not rotated), andExpiresAt. It fires independently ofRebuildPrincipalOnRefresh, and after the principal is rebuilt when both are used.OnTokensRefreshed.OnTokensRefreshed.1.8.0
Added
HttpContext.GetAccessTokenAsync(AccessTokenRequest)extension returns an access token for a requested audience and/or scope, served from the session cache when possible and otherwise via a refresh-token exchange.Auth0WebAppWithAccessTokenOptions.ScopeByAudience.OnAccessTokenRefreshFailedevent surfaces refresh failures, letting callers distinguish terminal failures (warranting re-login) from transient ones.MfaRequiredExceptionsurfaces the challenge, andIAuthenticationApiClient(registered viaWithAuthenticationApiClient()) lets the application complete OTP, OOB, or recovery-code grants and manage authenticators.Auth0WebAppWithAccessTokenOptions.AccessTokenExpirationLeeway(TimeSpan, default 60s) controls how far ahead of expiry the SDK proactively refreshes the access token. Previously hard-coded to 60 seconds; the default preserves prior behavior. Applies to both primary and additional (MRRT) cached tokens, and only takes effect whenUseRefreshTokensis enabled.WithSessionStoremethod onAuth0WebAppAuthenticationBuilderstores the authentication session server-side (viaITicketStore) instead of in the cookie. It attaches the store to the SDK's own resolved cookie scheme, so it works even with a customCookieAuthenticationScheme. Two overloads are provided:WithSessionStore<TStore>()(resolved from DI) andWithSessionStore(ITicketStore instance). Opt-in and additive; the default stateless cookie session is unchanged.Fixed
client_assertionaudience #236 (samjetski) - fixes a regression introduced in 1.7.0 (#206) where the Private Key JWT client assertionaudclaim was built ashttps://{tenant}//(double slash), causing Auth0's/oauth/tokenendpoint to reject the assertion with401 invalid_clientand leaving affected apps (any usingClientAssertionSecurityKey) in a callback loop.OnValidatePrincipalto the configured cookie scheme #248 (kailash-b) - fixes a scheme mismatch where the access-token refresh hook was registered against the default"Cookies"scheme rather than the configuredCookieAuthenticationScheme.Security
Microsoft.IdentityModel.Protocols.OpenIdConnect8.18.0 → 8.19.1,Microsoft.AspNetCore.Mvc.Testing10.0.8 → 10.0.9,Microsoft.AspNetCore.Mvc.ViewFeatures2.3.10 → 2.3.11,System.Text.Encodings.Web10.0.8 → 10.0.9.Commits viewable in compare view.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)