FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. travis.whidden
    3. Best
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Best 2
    • Controversial 0
    • Groups 0

    Best posts made by travis.whidden

    • RE: MVC Application that routes to different (fusion auth) tenants

      Not sure if this helps, as we don't currently use different tenants at this point in time, but we do for sure enforce sending the tenant id to each call:

      When you setup the OpenIdConnectOptions ---

      private const string TenantIdParameterName = "tenantId";
      
      ...
      
      options.Events.OnRedirectToIdentityProvider = context =>
      {
                       /* Fusion auth has the option for multiple tenants - when multiple tenants enabled,
                         we have to ensure we hit the right one for user auth. */
                      context.ProtocolMessage.SetParameter(TenantIdParameterName, authSettings.TenantId.ToString());
      }
      
      options.Events.OnRedirectToIdentityProviderForSignOut = context =>
                  {
                      context.ProtocolMessage.ClientId = authSettings.ClientId.ToString();
                      context.ProtocolMessage.SetParameter(TenantIdParameterName, authSettings.TenantId.ToString());
                      return Task.CompletedTask;
                  };
      
      

      Not sure if that helps you - you will have to look at the current HttpContext to decide what you want to do.

      posted in Q&A
      T
      travis.whidden
    • RE: Registration Email Templates: Access to the application name?

      Works perfectly. Much appreciated!

      posted in Q&A
      T
      travis.whidden