mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #705] Cannot redirect to the app after autosubmit credentials #456
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#456
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @denis-huma on GitHub (Dec 4, 2022).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/705
Description:
Hello guys, please help with my issue. I'm using OAuthSwift and universal links. It is related to the FITBIT credential page. Once user have opened Fitbit login page (via SFSafariController) and fill it automatically (autosubmit email/password - via Face ID) he cannot be redirected to the app again but rather got an error message on a web page. But when user inserts credentials manually he then able to be redirected to the app without any errors. Any suggestions how can I fix this problem? Thanks.
OAuth Provider?:
Fitbit
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
11.4 (Swift 5.2)
11.x (Swift 5.1)
10.x (Swift 5.0)
other: (14.1)
objective c
@phimage commented on GitHub (Dec 4, 2022):
Fitbit is only https scheme or any app scheme?
maybe only https so the page where it is redirected is your server?
if yes, it's your server that return the error and do not handle correctly the request, the server must do the job to redirect to an url that must be handled by the mobile app (url scheme, or universal links, ...)
@denis-huma commented on GitHub (Dec 4, 2022):
Fitbit is only https scheme or any app scheme? - yes
the page where it is redirected is your server? - yes
The thing is if I insert credentials manually - it works fine, but when I use FaceID to automatically fill saved credentials - I receive this error.
@denis-huma commented on GitHub (Dec 5, 2022):
@phimage Here is the response when I got 404 (FaceID case - automatic credentials fill), and correct response when I entered credentials manually.
@phimage commented on GitHub (Dec 5, 2022):
I have no clue about your server code
404 say that the page do not exists on your server, here the root page for a GET request
Maybe you are expecting an other path on your server like https://xxxx.yyy/callback/?code=....
did you make the code yourself ?