mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #630] OAuth unable to get the accesstoken on iOS 14 #412
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#412
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 @FDavidse20 on GitHub (Oct 27, 2020).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/630
Description:
We have implemented the flow that loggin in our iOS app opens SFSafariViewController which displays the login page handled by our own identity server. The user logs in, is redirected back to the app, and there the necessary calls our made to get the tokens we need.
This is working fine up until iOS 13.
When trying on iOS14, building with Xcode 12, the logging in and redirecting back is working as expected. But
when the OAuthSwift framework tries to get the access token in the function
fileprivate func requestOAuthAccessToken(..)
it fails, because it encounters an error, 403 Forbidden.
Any ideas what kind of differences between Xcode 12/iOS 14 and Xcode 11/iOS 13 could be causing this?
Thank you.
OAuth Provider? (Twitter, Github, ..):
our own
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: (Please fill in the version you are using.)
objective c
@Yudi26 commented on GitHub (Oct 30, 2020):
Using this I am able to get access token in Xcode 13, ios 14. Please try this.
self.oauthswift?.client.credential.oauthToken@phimage commented on GitHub (Nov 10, 2020):
no idea
@FDavidse20 commented on GitHub (Nov 10, 2020):
Thank you for your answers. However I'm not able to reproduce the issue anymore reliably.