-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(datastore): new enum to represent inferred and designated au…
…thType (#3694) * refactor(datastore): new enum to represent inferred and designated auth type * resolve failed multi auth integ tests * resolve comments
- Loading branch information
Showing
11 changed files
with
178 additions
and
186 deletions.
There are no files selected for viewing
71 changes: 0 additions & 71 deletions
71
.swiftpm/xcode/xcshareddata/xcschemes/AWSPluginsSDKCore.xcscheme
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
AmplifyPlugins/Core/AWSPluginsCore/Auth/AmplifyAuthorizationType.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// Copyright Amazon.com Inc. or its affiliates. | ||
// All Rights Reserved. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
|
||
import Foundation | ||
|
||
/// - Warning: Although this has `public` access, it is intended for internal use and should not be used directly | ||
/// by host applications. The behavior of this may change without warning. | ||
public enum AmplifyAuthorizationType { | ||
|
||
/// Determine the authorization method based on the amplifyconfiguration. | ||
case inferred | ||
|
||
/// Specify the authentication method. | ||
case designated(AWSAuthorizationType) | ||
|
||
public var awsAuthType: AWSAuthorizationType? { | ||
switch self { | ||
case .inferred: return nil | ||
case .designated(let authType): return authType | ||
} | ||
} | ||
} | ||
|
||
extension AmplifyAuthorizationType: Equatable { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.