Hi i need to integrate descope authentication for ...
# ask-a-descoper
a
Hi i need to integrate descope authentication for sso in the following way based upon client in the url (eg. xyz.com/tenant-name) i need to setup my url in such a way rather than taking it to any screen to add email and then move forward with external idp, i need to set up that within my angular component when it get tenant id from backend based upon tenant name and my angular component directly takes it to external idp and then called back to my website after authentication FYI - not integrated through federated app, need to create it based upon general flow Can you please help me to find a way i can achieve that?
d
You can pass the tenant id/name/domain as a start input of the flow (under the
tenant
input), and in the flow have SSO action, which will automatically take it from the provided
tenant
input. And if this tenant has SSO configured it will pick up its SSO configuration.
a
but i have different tenants i need to configure this for how can it be set dynamic for diff tenant in flow?
d
Just pass it as flow input
Take it from your URL and pass it as flow input under
tenant
Or have a scriptlet inside the flow that takes the url, parse the tenant name and set that value as
tenant
xyz.com/tenant-name
Take the right part after the
/
and set
tenant
to be that value
You can do that in your code and pass it to the flow component, or do this in a scriptlet inside the flow.
a
okay, let me check and get back to you if i have any doubt thanks
d
By the way, if you ask the exact same question in the docs ask ai you get a detailed answer with pointers:
a
thanks, will check this
thankyou for quick response