# Inject Dynamic query parameter to external IDPs authorize request

**URL:** <https://devforum.okta.com/t/inject-dynamic-query-parameter-to-external-idps-authorize-request/34128>\
**Category:** OAuth/OIDC\
**Tags:** idp\
**Created:** [August 14, 2025, 4:38pm UTC](https://devforum.okta.com/t/inject-dynamic-query-parameter-to-external-idps-authorize-request/34128 "2025-08-14T16:38:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![authnauthz](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@authnauthz](https://devforum.okta.com/u/authnauthz)\
**Post date:** [August 14, 2025, 4:38pm UTC](https://devforum.okta.com/t/inject-dynamic-query-parameter-to-external-idps-authorize-request/34128/1 "2025-08-14T16:38:49Z")

</div>

Hello! I am using Okta as my primary IdP. I have a use case where i receive a login url with a dynamic query parameter. ex ([www.exampleabc.com?custom\_param=123](http://www.exampleabc.com?custom_param=123)) . I navigate to my login discovery page and based on the email domain entered, the Okta routing rule redirects the browser to external IdP.(This external IdP is a Custom OIDC Integration within Okta) During this redirection I need to include custom\_param=123 as part of the authorize request of the externalIdP. External Idp Supports this in their payload.  
I see okta supports static params as part of authorize request in Admin console, but dynamic param in the form of OEL are not supported . I have come across solutions where I see this can be handled using standard state param to carry this value / relay proxy server intercepting and injecting this custom param before redirection to external IdP. But need some inputs on the right and safe way to achieve this, and also if this can be achieved within okta without a relay server (if Okta can persist the custom param)

Flow: Login URL→Okta→(Routing Rule)→External IdP

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [September 13, 2025, 4:39pm UTC](https://devforum.okta.com/t/inject-dynamic-query-parameter-to-external-idps-authorize-request/34128/2 "2025-09-13T16:39:41Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
