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
    5.8k
    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.
    • danD
      dan
      last edited by

      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 Reply Quote 0
      • danD
        dan
        last edited by

        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

          @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 danD 2 Replies Last reply Reply Quote 0
          • M
            maciej.wisniowski Power User @fred.fred
            last edited by

            @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
            • danD
              dan @fred.fred
              last edited by

              @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