Skip to content

Android faill on redirect to localhost/127.0.0.1 #324

Answered by fenix-hub
elfilipe asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @elfilipe ,
Local OAuth2 is not currently supported on Android.
The reason why it works on desktop is because a desktop application is able to work as a webserver and serve localhost to get requests for redirection. On Android that can't be done in this way.
A possible solution is to configure Android deep linking for your Android App, and use that link as a redirection URI for OAuth2. We don't have any working example yet, but simply because nobody asked this feature.
It is possible anyway, but requries you to use integrate additional modules, like this one https://github.com/timoschwarzer/godot-applinks to get Deep Linking working on Godot

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by WolfgangSenff
Comment options

You must be logged in to vote
1 reply
@brahma0545
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants