예제 #1
0
        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);
        }
예제 #2
0
 /// <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);
 }