Works perfectly. Much appreciated!
Posts made by travis.whidden
-
RE: Registration Email Templates: Access to the application name?
-
RE: Registration Email Templates: Access to the application name?
Sweet. Much appreciated. We were talking about making individual app templates, but that can get out of control especially for updates / changes. We do prefer to use one template for it --- across all the applications.
I'll stay-tuned for that enhancement.
Thanks!
-
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.
-
Registration Email Templates: Access to the application name?
Hello,
Working on our integration with FA - On the email templates, for template registration verification
https://fusionauth.io/docs/v1/tech/email-templates/email-templates/#registration-verification
There is a UserRegistration object, Tenant object and User object - but what about an Application object? In our email template, we would like to include what the application name is that the user is being invited to use.
Second part of the question: Can we use these variables in the subject lines? This way we could create unique subjects per application? IE: You have been invited to use '<app.name>'
We are using the verified flag on the registration to ensure a user opts into an application via email, even if they are granted access via admin interfaces.
~Travis