AWSCognitoIdentityNewPasswordRequiredDetails

@interface AWSCognitoIdentityNewPasswordRequiredDetails : NSObject

When responding to a new password required challenge this encapsulates the end users’ new password and required attributes

  • The end user’s new password

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nonnull) NSString *proposedPassword;

    Swift

    var proposedPassword: String { get set }
  • Any attribute the end user is setting. Values must be present for all required attributes. Any other attributes are optional.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable)
        NSArray<AWSCognitoIdentityUserAttributeType *> *userAttributes;

    Swift

    var userAttributes: [AWSCognitoIdentityUserAttributeType]? { get set }
  • A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        NSDictionary<NSString *, NSString *> *clientMetaData;

    Swift

    var clientMetaData: [String : String]? { get set }
  • Initializer given a new password and map of user attributes to set *

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithProposedPassword:(nonnull NSString *)proposedPassword
                  userAttributes:(nonnull NSDictionary<NSString *, NSString *> *)
                                     userAttributes;

    Swift

    init(proposedPassword: String, userAttributes: [String : String] = [:])