Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for setting authDomain on Android #4805

Closed
skion opened this issue Mar 21, 2023 · 6 comments
Closed

Support for setting authDomain on Android #4805

skion opened this issue Mar 21, 2023 · 6 comments
Assignees
Labels

Comments

@skion
Copy link

skion commented Mar 21, 2023

What feature would you like to see?

Support for setting authDomain on Android, or mobile in general. At the moment it is impossible to authenticate users via a custom domain when signing in on mobile.

How would you use it?

Usage would be similar to the web variant.

@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@NhienLam
Copy link

Hi, thanks for reporting!
The best practices in https://cloud.google.com/identity-platform/docs/web/redirect-best-practices need to be applied only for web applications that use the signInWithRedirect web SDK API. Hence, no action is needed for mobile apps.

If there are other reasons why you need this feature, could you please describe your use case and why you need this? Thanks!

@skion
Copy link
Author

skion commented Mar 28, 2023

@NhienLam Thanks, I could have been more clear perhaps. Reason is not that it doesn't work, but that it shows the default *.firebaseapp.com domain during the authentication flow. We would like this to show our own domain for branding/trust etc reasons.

Situation is therefore that a custom domain has been set up in Firebase, which indeed can be used for web apps, but mobile (OIDC) auth flows still visibly reveal the default Firebase domain to the end user, to my knowledge without any option to change this.

@NhienLam
Copy link

@skion Thanks for the update. We currently do not support custom domain on mobile. We have put this feature request on our radar, but we are unable to promise a timeline right now.

@apgiorgi
Copy link

apgiorgi commented Sep 6, 2023

I have another good reason for using custom auth domains:
A customer had their firebaseapp.com and web.app hostnames incorrectly included in phishing blacklists (DNSBL), interfering with DNS resolution on "safe/protected" nameservers. The only immediate solution before removing those blacklist entries is to use a custom authentication domain.
Is it hard to implement this customization option? Are there other alternatives?

@NhienLam
Copy link

This is now available in the latest Auth version.

@firebase firebase locked and limited conversation to collaborators Nov 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants
@apgiorgi @skion @google-oss-bot @NhienLam @argzdev and others