private string GenerateRedirectUri(AuthenticationProperties properties) { string requestPrefix = Request.Scheme + "://" + Request.Host; string redirectUri = requestPrefix + RequestPathBase + Options.CallbackPath; // + "?state=" + Uri.EscapeDataString(Options.StateDataHandler.Protect(state)); var context = new Auth0CustomizeTokenExchangeRedirectUriContext(Request.Context, Options, properties, redirectUri); Options.Provider.CustomizeTokenExchangeRedirectUri(context); return(context.RedirectUri); }
/// <summary> /// Called the redirect_uri is generated during the token exchange. /// You may need to change this value if you handle SSL offloading on the load balancer. /// </summary> /// <param name="context">Contains redirect URI and <see cref="AuthenticationProperties"/> of the challenge </param> public void CustomizeTokenExchangeRedirectUri(Auth0CustomizeTokenExchangeRedirectUriContext context) { OnCustomizeTokenExchangeRedirectUri(context); }