Can a custom Universal Login get geoip.countryCode?

We have a custom Universal Login configured as well as a Post Login Custom Action. The custom action is able to call geoip.countryCode, however we would like to be able to get this same information from the Universal Login html/script. Is this possible? If not, can it call another Custom Action which can get geoip.countryCode?

Hi @michael.fanning,

Welcome to the Auth0 Community!

The New Universal Login Page Templates allow you to access the locale variable. Please see the documentation here: https://auth0.com/docs/customize/login-pages/universal-login/customize-templates#current-screen-information

You cannot call another action from the New Universal Login Page. If you need to conditionally render styles/components by location, I suggest trying the locale variable. I also found a backlog item requesting support for a specific countryCode variable in the New Universal Login Page Template so hopefully that gets added into the product in the future.

Please let me know if you have any additional questions!

Best,

Mary Beth

It looks like locale does not provide a granular enough detection of say whether a user is in Quebec where Canadian French language is mandated by law as opposed to the rest of Canada that can be Canadian English (unless I’m mistaken). We are trying to detect this at the login page and set the language of the template accordingly.

Hi @michael.fanning,

I understand completely. Though this is already in the backlog, I’d recommend submitting product feedback following this guide: How to Submit Product Feedback or Feature Requests

Alternatively, you can submit it here: Auth0: Secure access for everyone. But not just anyone.

The team reviews the feedback on a regular basis to gauge interest. Additional requests for items in the backlog allow them to prioritize certain features.

Let me know if you have any additional questions!

Best,

Mary Beth

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