[GH-ISSUE #705] Cannot redirect to the app after autosubmit credentials #456

Closed
opened 2026-03-03 16:48:48 +03:00 by kerem · 4 comments
Owner

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:

  • Version 1
  • Version 2

OS (Please fill the version) :

  • iOS :
  • OSX :
  • TVOS :
  • WatchOS :

Installation method:

  • Carthage
  • CocoaPods
  • Swift Package Manager
  • Manually

Library version:

Xcode version:

  • 11.4 (Swift 5.2)

  • 11.x (Swift 5.1)

  • 10.x (Swift 5.0)

  • other: (14.1)

  • objective c

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: - [ ] Version 1 - [x] Version 2 ### OS (Please fill the version) : - [x] iOS : - [ ] OSX : - [ ] TVOS : - [ ] WatchOS : ### Installation method: - [ ] Carthage - [x] CocoaPods - [ ] Swift Package Manager - [ ] Manually ### Library version: - [ ] head - [ ] v2.1.0 - [ ] v2.0.0 - [ ] v1.4.1 - [x] other: (pod 'OAuthSwift', :git => 'https://github.com/OAuthSwift/OAuthSwift.git') ### Xcode version: - [ ] 11.4 (Swift 5.2) - [ ] 11.x (Swift 5.1) - [ ] 10.x (Swift 5.0) - [x] other: (14.1) - [ ] objective c
kerem closed this issue 2026-03-03 16:48:48 +03:00
Author
Owner

@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, ...)

<!-- gh-comment-id:1336430978 --> @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, ...)
Author
Owner

@denis-huma 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, ...)


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.

<!-- gh-comment-id:1336476140 --> @denis-huma 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, ...) --- 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.
Author
Owner

@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.

<!-- gh-comment-id:1336983409 --> @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.
Author
Owner

@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 ?

<!-- gh-comment-id:1337055521 --> @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 ?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#456
No description provided.