# ACUL - Access to ext-\* variables from login request

**URL:** <https://community.auth0.com/t/acul-access-to-ext-variables-from-login-request/194277>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [November 10, 2025, 3:46pm UTC](https://community.auth0.com/t/acul-access-to-ext-variables-from-login-request/194277 "2025-11-10T15:46:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![brycen.rogers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brycen.rogers/32/59788_2.png) [@brycen.rogers](https://community.auth0.com/u/brycen.rogers)\
**Post date:** [November 10, 2025, 3:46pm UTC](https://community.auth0.com/t/acul-access-to-ext-variables-from-login-request/194277/1 "2025-11-10T15:46:17Z")

</div>

I need to send the referrer domain from the login request in order to implement a custom Forgot Password flow. My thought was to use the `ext-*` variable pattern that is supported by the existing Universal Login flow.

Reference: [https://auth0.com/docs/customize/login-pages/universal-login/customize-templates#custom-query-parameters](https://auth0.com/docs/customize/login-pages/universal-login/customize-templates#custom-query-parameters)

However, I am not able to access these variables anywhere. It appears that they _should_ be available on `loginInstance.authorizationParams.untrustedData` but it is always `null`.

```auto
import LoginInstance from "@auth0/auth0-acul-js/login";
const loginInstance = useMemo(() => new LoginInstance(), []);
const { transaction, screen, untrustedData } = loginInstance;

// Access authorization params
console.log(untrustedData.authorizationParams); <--- null

```

Here is an example login URL that is sent:

```auto
http://localhost:3000/auth/login?organization=org_123456789abc&audience=https%3A%2F%2Fauth-testing-api.example.io%2F&prompt=login&returnTo=http%3A%2F%2Flocalhost%3A3000%2F&ext-referrer=localhost%3A3000

```

I would expect to have access to `untrustedData.authorizationParams['ext-referrer']` in this case, but all authorizationParams are empty.

I have filed Github issues for this question in two repositories but have not received any replies on them yet.

> <https://github.com/auth0/universal-login/issues/265>
>
> I need to send the referrer domain from the login request in order to implement …a custom Forgot Password flow. My thought was to use the \`ext-\*\` variable pattern that is supported by the existing Universal Login flow. 
> 
> Reference: https://auth0.com/docs/customize/login-pages/universal-login/customize-templates#custom-query-parameters
> 
> However, I am not able to access these variables anywhere. It appears that they \*should\* be available on \`loginInstance.authorizationParams.untrustedData\` but it is always \`null\`.
> 
> \## Context
> 
> Please provide any relevant context that might help us answer your question:
> 
> \- \*\*What are you trying to achieve?\*\*
> Trying to capture the \`Referrer\` domain of the login request, either using \`ext-\` parameters or other available means
> \- \*\*What have you already tried?\*\*
> Tried sending a login request with \`ext-referrer\` variable expecting to have access to it within the ACUL components
> \- \*\*What documentation have you consulted?\*\*
> All available
> 
> \## Code Example (if applicable)
> 
> When I access the implied location of the \`ext-\*\` variables, they are empty.
> 
> \`\`\`
> import LoginInstance from "@auth0/auth0-acul-js/login";
> const loginInstance = useMemo(() =\> new LoginInstance(), \[\]);
> const { transaction, screen, untrustedData } = loginInstance;
> 
> // Access authorization params
> console.log(untrustedData.authorizationParams); \<--- null
> \`\`\`
> 
> Here is an example login URL that is sent:
> \`\`\`
> http://localhost:3000/auth/login?organization=org\_287zwWOCt7RHmkZI&audience=https%3A%2F%2Fauth-testing-api.example.io%2F&prompt=login&returnTo=http%3A%2F%2Flocalhost%3A3000%2F&simple\_middleware=true&ext-referrer=localhost%3A3000
> \`\`\`
> 
> I would expect to have access to \`untrustedData.authorizationParams\['ext-referrer'\]\` in this case, but all authorizationParams are empty. 
> 
> Let me know if there is another method for accessing this, or a better way to capture the referrer domain, thanks.
> 
> \## Environment (if relevant)
> 
> \- \*\*Auth0 ACUL SDK Version\*\*: 0.1.0-beta.7
> \- \*\*Node.js Version\*\*: 20
> \- \*\*Framework\*\*: React 19.1.0

> <https://github.com/auth0-samples/auth0-acul-samples/issues/57>
>
> \## Question
> 
> I need to send the referrer domain from the login request in order …to implement a custom Forgot Password flow. My thought was to use the \`ext-\*\` variable pattern that is supported by the existing Universal Login flow. 
> 
> Reference: https://auth0.com/docs/customize/login-pages/universal-login/customize-templates#custom-query-parameters
> 
> \## Context
> 
> Please provide any relevant context that might help us answer your question:
> 
> \- \*\*What are you trying to achieve?\*\*
> Trying to capture the \`Referrer\` domain of the login request, either using \`ext-\` parameters or other available means
> \- \*\*What have you already tried?\*\*
> Tried sending a login request with \`ext-referrer\` variable expecting to have access to it within the ACUL components
> \- \*\*What documentation have you consulted?\*\*
> All available
> 
> \## Code Example (if applicable)
> 
> When I access the implied location of the \`ext-\*\` variables, they are empty.
> 
> \`\`\`
> const loginInstance = useMemo(() =\> new LoginInstance(), \[\]);
> const { transaction, screen, untrustedData } = loginInstance;
> 
> // Access authorization params
> console.log(untrustedData.authorizationParams); \<--- null
> \`\`\`
> 
> Here is an example login URL that is sent:
> \`\`\`
> http://localhost:3000/auth/login?organization=org\_287zwWOCt7RHmkZI&audience=https%3A%2F%2Fauth-testing-api.example.io%2F&prompt=login&returnTo=http%3A%2F%2Flocalhost%3A3000%2F&simple\_middleware=true&ext-referrer=localhost%3A3000
> \`\`\`
> 
> I would expect to have access to \`untrustedData.authorizationParams\['ext-referrer'\]\` in this case, but all authorizationParams are empty. 
> 
> Let me know if there is another method for accessing this, or a better way to capture the referrer domain, thanks.
> 
> \## Environment (if relevant)
> 
> \- \*\*Auth0 ACUL SDK Version\*\*: \[e.g. 0.1.0-beta.7\]
> \- \*\*Node.js Version\*\*: \[e.g. 22.16.0\]
> \- \*\*Framework\*\*: \[e.g. React 19.1.0\]
> 
> \## Additional Information
> 
> Any other details that might be helpful.

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [November 11, 2025, 6:18pm UTC](https://community.auth0.com/t/acul-access-to-ext-variables-from-login-request/194277/3 "2025-11-11T18:18:15Z")

</div>

Hi @brycen.rogers

Welcome to the Auth0 Community!

By any chance, is the external parameter you are passing through the URL available in the `transaction`? What I want to know if the passed in parameter is available if accessed as `transaction.params.ext-referrer` or `transaction.params`?

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![brycen.rogers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brycen.rogers/32/59788_2.png) [@brycen.rogers](https://community.auth0.com/u/brycen.rogers)\
**Post date:** [November 11, 2025, 7:48pm UTC](https://community.auth0.com/t/acul-access-to-ext-variables-from-login-request/194277/4 "2025-11-11T19:48:51Z")

</div>

Hey @nik.baleca thanks for the reply,

I checked all properties available on the LoginManager with dev tools and I do not see it anywhere in the transaction. Based on the documentation of the `LoginInstance` in `"@auth0/auth0-acul-js/login"` it appears this data is expected to be within the `untrustedData` property.

Here is a screenshot of the dev tools to give you some insight, I have expanded the `transaction` object on the right

 ![Screenshot 2025-11-11 at 2.44.27 PM](https://global.discourse-cdn.com/auth0/original/3X/2/4/246a6a8e3e39ee442696162d6cf82d6bdebc3555.png)

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [November 14, 2025, 6:51pm UTC](https://community.auth0.com/t/acul-access-to-ext-variables-from-login-request/194277/5 "2025-11-14T18:51:00Z")

</div>

Hi again @brycen.rogers

This might be caused by the fact that the custom query parameters are a feature of New Universal Login and they might not be parsed arbitrarily by `LoginInstance` since the configuration is populated by the Auth0 server and not by the current URL passed to the browser.

However, as a possible solution, you can try reading the parameter directly from the location of the browser by using `window.location`. You can do this as seen in this example below:

```auto
import LoginInstance from "@auth0/auth0-acul-js/login";

const loginInstance = useMemo(() => new LoginInstance(), []);
const { transaction, screen } = loginInstance;

// Read the parameter directly from the browser's URL as such:
const urlParams = useMemo(() => 
  new URLSearchParams(window.location.search)
, []);

const referrerDomain = urlParams.get('ext-referrer');

if (referrerDomain) {
  console.log('Referrer found:', referrerDomain);
}

```

Let me know if the proposed solution is able to fix your issue and if you have any other questions/challenges on the matter.

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![brycen.rogers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brycen.rogers/32/59788_2.png) [@brycen.rogers](https://community.auth0.com/u/brycen.rogers)\
**Post date:** [November 17, 2025, 3:36pm UTC](https://community.auth0.com/t/acul-access-to-ext-variables-from-login-request/194277/6 "2025-11-17T15:36:20Z")

</div>

Hey @nik.baleca

Unfortunately the only query parameter available at the login screen at this part of the flow is the `state` parameter.

Example:

```auto
https://auth-testing.example.io/u/login?state=hqFo2SBwanB2T1dKS21JRzlaZE9xRzgzazhfRHpp...

```

Is this just simply not supported in ACUL anymore, or is this a bug?

Thanks

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [November 17, 2025, 5:32pm UTC](https://community.auth0.com/t/acul-access-to-ext-variables-from-login-request/194277/7 "2025-11-17T17:32:35Z")

</div>

Hi again!

Sorry, I completely forgot about the second redirect to the `/u/login` URL, that was an oversight on my part.

Could you please let me know what is the screen that you have configured for the specific transaction? Login/LoginId etc?

I would suggest to check out this documentation about the [context object](https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens#customize-the-universal-login-context-object) in ACUL where you should be able to access the passed in query parameters.

Also, what is the Node version you have configured your tenant to be using? You can find that under Settings → Advanced → Extensibility.

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![brycen.rogers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brycen.rogers/32/59788_2.png) [@brycen.rogers](https://community.auth0.com/u/brycen.rogers)\
**Post date:** [November 18, 2025, 2:00am UTC](https://community.auth0.com/t/acul-access-to-ext-variables-from-login-request/194277/8 "2025-11-18T02:00:57Z")

</div>

Thanks @nik.baleca - I got it working!

I needed to define the `"context_configuraiton”` on the `settings.json` file for the screen.

```auto
{
	"rendering_mode": "advanced",	
    "context_configuration": [
		"untrusted_data.authorization_params.ext-referrer"
	],
...

```

After deploying those changes, I am able to access the `ext-referrer` variable.

Thanks again!

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [November 18, 2025, 3:54pm UTC](https://community.auth0.com/t/acul-access-to-ext-variables-from-login-request/194277/9 "2025-11-18T15:54:09Z")

</div>

Thanks for letting me know and for sharing the solution with the rest of us!

If you ever run into any other issue, you can always post and I will be looking forward to seeing you around!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 2, 2025, 3:54pm UTC](https://community.auth0.com/t/acul-access-to-ext-variables-from-login-request/194277/10 "2025-12-02T15:54:48Z")

</div>

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