Skip to content

Commit a0f233b

Browse files
committed
fix: remove codeChallenge and codeChallengeMethod
This are not supported through `additionalParameters`. Closes #25
1 parent d9254b5 commit a0f233b

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

Sources/FusionAuth/oauth/OAuthAuthorizationService.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ public class OAuthAuthorizationService {
3535
if locale != nil {
3636
additionalParameters.updateValue(locale!, forKey: "locale")
3737
}
38-
if options.codeChallenge != nil {
39-
additionalParameters.updateValue(options.codeChallenge!, forKey: "code_challenge")
40-
}
41-
if options.codeChallengeMethod != nil {
42-
additionalParameters.updateValue(options.codeChallengeMethod!.rawValue, forKey: "code_challenge_method")
43-
}
4438
if options.idpHint != nil {
4539
additionalParameters.updateValue(options.idpHint!, forKey: "idp_hint")
4640
}

Sources/FusionAuth/oauth/OAuthAuthorizeOptions.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ public struct OAuthAuthorizeOptions {
1515
let redirectUri: String
1616
/// The identity provider hint to be used for the OAuth authorize request.
1717
let idpHint: String?
18-
/// The code challenge to be used for the OAuth authorize request.
19-
let codeChallenge: String?
20-
/// The code challenge method to be used for the OAuth authorize request.
21-
let codeChallengeMethod: OAuthCodeChallengeMethod?
2218
/// An optional email address or top level domain that can allow you to bypass the FusionAuth login
2319
/// page when using managed domains.
2420
let loginHint: String?
@@ -37,8 +33,6 @@ public struct OAuthAuthorizeOptions {
3733
bundleId: String = Bundle.main.bundleIdentifier ?? "",
3834
redirectUriSuffix: String = ":/oauth2redirect/ios-provider",
3935
idpHint: String? = nil,
40-
codeChallenge: String? = nil,
41-
codeChallengeMethod: OAuthCodeChallengeMethod? = nil,
4236
loginHint: String? = nil,
4337
deviceDescription: String? = nil,
4438
nonce: String? = nil,
@@ -49,8 +43,6 @@ public struct OAuthAuthorizeOptions {
4943
self.bundleId = bundleId
5044
self.redirectUri = bundleId + redirectUriSuffix
5145
self.idpHint = idpHint
52-
self.codeChallenge = codeChallenge
53-
self.codeChallengeMethod = codeChallengeMethod
5446
self.loginHint = loginHint
5547
self.deviceDescription = deviceDescription
5648
self.nonce = nonce

Sources/FusionAuth/oauth/OAuthCodeChallengeMethod.swift

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)