Pre Authourize Lambda or Hook
-
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,
-
@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