We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0f233b commit 47898caCopy full SHA for 47898ca
Sources/FusionAuth/oauth/OAuthAuthorizationService.swift
@@ -90,6 +90,12 @@ extension OAuthAuthorizationService {
90
return
91
}
92
93
+ let scheme = config.issuer?.scheme
94
+ if scheme != "http" && scheme != "https" {
95
+ continuation.resume(throwing: OAuthError.invalidIssuer)
96
+ return
97
+ }
98
+
99
continuation.resume(returning: config)
100
101
Sources/FusionAuth/oauth/OAuthErrors.swift
@@ -9,4 +9,5 @@ enum OAuthError: Error {
9
case refreshTokenNoResponse
10
case unableToUpdateInternalState
11
case invalidUserAgent
12
+ case invalidIssuer
13
0 commit comments