Skip to content

Replace in-line OAuth2 strings with centralized constants

Sign in for the full log view
GitHub Actions / results-xcode-tests-iOS failed Nov 26, 2024 in 0s

Xcode test results

Build Summary

Compile extensions.swift (arm64)
Compile Keychain.swift (arm64)
Compile OAuth2Logger.swift (arm64)
Compile OAuth2KeychainAccount.swift (arm64)
Compile OAuth2CodeGrantAzure.swift (arm64)
Compile OAuth2WebViewController+macOS.swift (arm64)
Compile OAuth2Securable.swift (arm64)
Compile OAuth2Error.swift (arm64)
Compile OAuth2AuthRequest.swift (arm64)
Compile OAuth2DeviceGrant.swift (arm64)
Compile OAuth2ClientConfig.swift (arm64)
Compile OAuth2CustomAuthorizer+macOS.swift (arm64)
Compile OAuth2.swift (arm64)
error: Swift Compiler Error: Cannot find 'OAuth2GrantTypes' in scope
error: Swift Compiler Error: Cannot find 'OAuth2GrantTypes' in scope
error: Swift Compiler Error: Cannot find 'OAuth2TokenTypeIdentifiers' in scope
error: Swift Compiler Error: Cannot find 'OAuth2TokenTypeIdentifiers' in scope
error: Swift Compiler Error: Cannot find 'OAuth2GrantTypes' in scope
error: Swift Compiler Error: Cannot find 'OAuth2TokenTypeIdentifiers' in scope
error: Swift Compiler Error: Cannot find 'OAuth2TokenTypeIdentifiers' in scope

Sources/Flows/OAuth2.swift:362:30: error: cannot find 'OAuth2GrantTypes' in scope
                req.params["grant_type"] = OAuth2GrantTypes.refreshToken
                                           ^~~~~~~~~~~~~~~~
Sources/Flows/OAuth2.swift:427:30: error: cannot find 'OAuth2GrantTypes' in scope
                req.params["grant_type"] = OAuth2GrantTypes.tokenExchange
                                           ^~~~~~~~~~~~~~~~
Sources/Flows/OAuth2.swift:429:40: error: cannot find 'OAuth2TokenTypeIdentifiers' in scope
                req.params["requested_token_type"] = OAuth2TokenTypeIdentifiers.refreshToken
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
Sources/Flows/OAuth2.swift:431:38: error: cannot find 'OAuth2TokenTypeIdentifiers' in scope
                req.params["subject_token_type"] = OAuth2TokenTypeIdentifiers.refreshToken
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
Sources/Flows/OAuth2.swift:516:30: error: cannot find 'OAuth2GrantTypes' in scope
                req.params["grant_type"] = OAuth2GrantTypes.tokenExchange
                                           ^~~~~~~~~~~~~~~~
Sources/Flows/OAuth2.swift:519:40: error: cannot find 'OAuth2TokenTypeIdentifiers' in scope
                req.params["requested_token_type"] = OAuth2TokenTypeIdentifiers.accessToken
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
Sources/Flows/OAuth2.swift:521:38: error: cannot find 'OAuth2TokenTypeIdentifiers' in scope
                req.params["subject_token_type"] = OAuth2TokenTypeIdentifiers.accessToken
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~

Compile OAuth2Response.swift (arm64)
Compile OAuth2CodeGrant.swift (arm64)
error: Swift Compiler Error: Cannot find 'OAuth2GrantTypes' in scope
error: Swift Compiler Error: Cannot find 'OAuth2ResponseTypes' in scope

Sources/Flows/OAuth2CodeGrant.swift:38:10: error: cannot find 'OAuth2GrantTypes' in scope
                return OAuth2GrantTypes.authorizationCode
                       ^~~~~~~~~~~~~~~~
Sources/Flows/OAuth2CodeGrant.swift:42:10: error: cannot find 'OAuth2ResponseTypes' in scope
                return OAuth2ResponseTypes.code
                       ^~~~~~~~~~~~~~~~~~~

Compile OAuth2DataLoader.swift (arm64)
Compile OAuth2CodeGrantNoTokenType.swift (arm64)
Compile OAuth2DataLoaderSessionTaskDelegate.swift (arm64)
Compile OAuth2CodeGrantFacebook.swift (arm64)
Compile OAuth2CodeGrantLinkedIn.swift (arm64)
Compile OAuth2CodeGrantBasicAuth.swift (arm64)
Compile OAuth2PasswordGrant.swift (arm64)
error: Swift Compiler Error: Cannot find 'OAuth2GrantTypes' in scope

Sources/Flows/OAuth2PasswordGrant.swift:57:10: error: cannot find 'OAuth2GrantTypes' in scope
                return OAuth2GrantTypes.password
                       ^~~~~~~~~~~~~~~~

Compile OAuth2DynReg.swift (arm64)
Emitting module for OAuth2
error: Command SwiftEmitModule failed with a nonzero exit code

Command SwiftEmitModule failed with a nonzero exit code

Annotations

Check failure on line 30 in Sources/Flows/OAuth2DeviceGrant.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2GrantTypes' in scope

Check failure on line 43 in Sources/Flows/OAuth2DeviceGrant.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2GrantTypes' in scope

Check failure on line 362 in Sources/Flows/OAuth2.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2GrantTypes' in scope

Check failure on line 427 in Sources/Flows/OAuth2.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2GrantTypes' in scope

Check failure on line 429 in Sources/Flows/OAuth2.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2TokenTypeIdentifiers' in scope

Check failure on line 431 in Sources/Flows/OAuth2.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2TokenTypeIdentifiers' in scope

Check failure on line 516 in Sources/Flows/OAuth2.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2GrantTypes' in scope

Check failure on line 519 in Sources/Flows/OAuth2.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2TokenTypeIdentifiers' in scope

Check failure on line 521 in Sources/Flows/OAuth2.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2TokenTypeIdentifiers' in scope

Check failure on line 38 in Sources/Flows/OAuth2CodeGrant.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2GrantTypes' in scope

Check failure on line 42 in Sources/Flows/OAuth2CodeGrant.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2ResponseTypes' in scope

Check failure on line 362 in Sources/Flows/OAuth2.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2GrantTypes' in scope

Check failure on line 427 in Sources/Flows/OAuth2.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2GrantTypes' in scope

Check failure on line 429 in Sources/Flows/OAuth2.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2TokenTypeIdentifiers' in scope

Check failure on line 431 in Sources/Flows/OAuth2.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2TokenTypeIdentifiers' in scope

Check failure on line 516 in Sources/Flows/OAuth2.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2GrantTypes' in scope

Check failure on line 519 in Sources/Flows/OAuth2.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2TokenTypeIdentifiers' in scope

Check failure on line 521 in Sources/Flows/OAuth2.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2TokenTypeIdentifiers' in scope

Check failure on line 38 in Sources/Flows/OAuth2CodeGrant.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2GrantTypes' in scope

Check failure on line 42 in Sources/Flows/OAuth2CodeGrant.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2ResponseTypes' in scope

Check failure on line 57 in Sources/Flows/OAuth2PasswordGrant.swift

See this annotation in the file changed.

@github-actions github-actions / results-xcode-tests-iOS

error

Cannot find 'OAuth2GrantTypes' in scope