• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

How do you assign a theme to an application?

Scheduled Pinned Locked Moved
Q&A
theme faq application
3
5
6.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    dan
    last edited by 1 May 2020, 16:20

    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.

    --
    FusionAuth - Auth for devs, built by devs.
    https://fusionauth.io

    F 1 Reply Last reply 23 Nov 2021, 22:51 Reply Quote 0
    • D
      dan
      last edited by 1 May 2020, 16:21

      Themes are mapped to tenants. Per https://fusionauth.io/docs/v1/tech/apis/themes

      Themes are configured per Tenant.

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      1 Reply Last reply Reply Quote 0
      • F
        fred.fred @dan
        last edited by 23 Nov 2021, 22:51

        @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?

        M D 2 Replies Last reply 24 Nov 2021, 21:14 Reply Quote 0
        • M
          maciej.wisniowski Power User @fred.fred
          last edited by 24 Nov 2021, 21:14

          @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]
          
          1 Reply Last reply Reply Quote 2
          • D
            dan @fred.fred
            last edited by 25 Nov 2021, 03:17

            @fred-fred

            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.

            --
            FusionAuth - Auth for devs, built by devs.
            https://fusionauth.io

            1 Reply Last reply Reply Quote 1
            • First post
              Last post