-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Auth): provide AuthConfiguration from plugin #3566
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #3566 +/- ##
==========================================
- Coverage 68.42% 68.41% -0.01%
==========================================
Files 1077 1079 +2
Lines 36287 36359 +72
==========================================
+ Hits 24829 24875 +46
- Misses 11458 11484 +26
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
44ad12b
to
e57fc72
Compare
...h/Sources/AWSCognitoAuthPlugin/StateMachine/CodeGen/Data/IdentityPoolConfigurationData.swift
Show resolved
Hide resolved
...Auth/Sources/AWSCognitoAuthPlugin/StateMachine/CodeGen/Data/PasswordProtectionSettings.swift
Outdated
Show resolved
Hide resolved
@@ -25,7 +26,7 @@ extension IdentityPoolConfigurationData: CustomDebugDictionaryConvertible { | |||
} | |||
|
|||
extension IdentityPoolConfigurationData: CustomDebugStringConvertible { | |||
var debugDescription: String { | |||
public var debugDescription: String { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing @spi
public var debugDescription: String { | |
@_spi(InternalAmplifyConfiguration) | |
public var debugDescription: String { |
It would be nice if we can write some tests around the parsing logic, just to make sure everything works as intended. |
Issue #
Description
AWSCognitoAuthPlugin currently provides the
amplifyconfiguration.json
file through thejsonConfiguration
property. This PR deprecates that and provides the SPI public AuthConfiguration type. By only deprecating it and not removing thejsonConfiguration
object provides a non-breaking change to Authenticator that uses it.Related aws-amplify/amplify-ui-swift-authenticator#58
General Checklist
Given When Then
inline code documentation and are named accordinglytestThing_condition_expectation()
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.