mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-27 13:15:55 +03:00
[GH-ISSUE #622] Facing issues when using OAuth2 PKCE like shown in readme #404
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#404
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 @flowinho on GitHub (Sep 3, 2020).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/622
Description:
Hey there!
The circumstances
I'd like to use the OAuthSwift framework with a custom system based on Amazon KeyCloak. However i'm facing issue upon initialization of the framework. The Readme describes the following method:
The problem
My compiler tells me that
base64url,codeChallengeare unknown types and thatoauthswiftdoes not have a memberauthorize.Any ideas on how to solve this? The app-project up until is very basic, no big changes have been made to the project-settings and third-party tools that edit the project (e.g. Cocoapods) are not present.
Looking forward to receiving your help. <3
Greetings from Southern Germany
OAuth Provider? (Twitter, Github, ..):
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
11.5
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
@kdembler commented on GitHub (Sep 23, 2020):
Seems both
base64urlandcodeChallengeare stubs for your own implementation. This article https://auth0.com/docs/flows/call-your-api-using-the-authorization-code-flow-with-pkce has examples of generating bothcodeVerifierandcodeChallengein Swift@lveecode commented on GitHub (Nov 23, 2020):
OAuthSwift itself does not, but OAuth2Swift does. If it's an instance variable, make sure oauthswift is defined as OAuth2Swift (not OAuthSwift).
Alternatively, if it has to be a generic OAuthSwift,
@MrWoWander commented on GitHub (Mar 2, 2021):
I wrote and sent to the PR #647 generator random code verifier and code challenge