How do you assign a theme to an application?
-
How do you assign a theme to a FusionAuth application? I looked in the admin ui and the theme docs and api and didn't see a way to map between the two.
-
Themes are mapped to tenants. Per https://fusionauth.io/docs/v1/tech/apis/themes
Themes are configured per Tenant.
-
@dan Is there any other way to assign a themed UI in the same tenant id if the client ids are different?
For example, we have the same user base from two different companies in our FusionAuth (FA) tenant.
Both companies can access the same applications that we host as defined in the applications section of FA.
However, one of the companies has a specific application that they host, which we restrict only to them by the client id of the application.
It would be nice to show a different logo on the oauth2/authorize screen when a specific clientId shows up in the querystring of oauth2/authorize
Is this possible?
-
@fred-fred You can customize the templates (eg macro body in helpers.ftl) in your theme like this:
[#if application?? && application.name?? && application.name == "MyApp1"] this is myapp 1 login screen [#elseif application?? && application.name?? && application.name == "FusionAuth"] this is FusionAuth login screen [#else] this is something else [/#if]
-
Hiya,
In addition to what @maciej-wisniowski suggested, if you have a paid license you can now have application specific themes (one theme per application; if no application theme is specified, it defaults to the tenant).
You can see how that works in the sandbox environment (sandbox.fusionauth.io). I believe that feature landed in 1.27.0.
You can buy a licensed edition here.