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

    Pre Authourize Lambda or Hook

    Scheduled Pinned Locked Moved
    General Discussion
    2
    2
    122
    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
      depth9mcd
      last edited by

      Hi,

      Is there a way to run a lambda prior to the /authorize request redirecting the user to the login page.

      I want to omit the tenant_id from the authorize request and look it up dynamically (based on a hostname param passed in the request) and add it to the request. Basically it's a tenant_id lookup.

      Is this possible?

      Thank you,

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @depth9mcd
        last edited by dan

        @depth9mcd This is typically accomplished using a proxy (Apache, NGINX, etc) in front of FusionAuth.

        https://fusionauth.io/docs/v1/tech/admin-guide/proxy-setup#proxies-and-tenants has more details.

        However, please feel free to file a feature request with your suggestion for a lambda to run before the authorize page is rendered: https://github.com/fusionauth/fusionauth-issues/issues

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

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