Skip to content
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

Updated Credentials Manager #180

Merged
merged 3 commits into from
Dec 28, 2017
Merged

Conversation

cocojoe
Copy link
Member

@cocojoe cocojoe commented Dec 20, 2017

Renamed Touch Internals -> BioAuthentication
Deprecated enableTouchAuth method -> enableBiometrics for clarity
Expand README Docs
Update Circle CI Xcode Version

Renamed Touch Internals -> BioAuthentication
Deprecated enableTouchAuth method -> enableBiometricAuth for clarity
Expand README Docs
Update Circle CI Xcode Version
SwiftLint Corrections
@cocojoe cocojoe force-pushed the updated-credentials-manager-face-id branch from 9196bdc to c94d77e Compare December 20, 2017 11:36
README.md Outdated
#### Retrieve stored credentials

Credentials will automatically be renewed (if expired) using the refresh token. The scope `offline_access` is required
to ensure the refreshtToken is returned.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the new line after "required". Also typo. I would use "refresh token" instead.

README.md Outdated
@@ -207,6 +212,15 @@ credentialsManager.credentials { error, credentials in
}
```

#### Biometric authentication

You can enable an additional level of user authentication before retrieving credentials using the biometric authentication
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the new line after "biometric" and "authentication" (2nd)

/// Enable Device Biometric Authentication for additional securtity during credentials retrieval.
///
/// - Parameters:
/// - title: main message to display in TouchID prompt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parameters talk about "touch" id. Should be changed to "bio" something

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well it is only used during a touch prompt, it's not valid for face id. could be more verbose perhaps 'display when using touch id'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how this works as haven't tested myself. So when a face is expected no message is displayed, nothing that can be customized?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

///
/// - Parameters:
/// - title: main message to display in TouchID prompt
/// - cancelTitle: cancel message to display in TouchID prompt (iOS 10+)
/// - fallbackTitle: fallback message to display in TouchID prompt after a failed match
@available(*, deprecated, message: "see enableBioAuth(withTitle title:, cancelTitle:, fallbackTitle:)")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so just deprecated because of the name change? No difference in the parameters??

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, for the sake of clarity it should be the more generic bio as touchid might imply to some developers that it is ONLY for touch

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new name is better but deprecating the method just because of the name doesn't sound right to me. Make this call 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional comment: Message says "see enableBioAuth" but the method is called "enableBiometricAuth". Also if these methods are going to have the same logic, make one call the other instead of copy-pasting the logic.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made that change in the most recent commit.

Copy link
Contributor

@lbalmaceda lbalmaceda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. But it's not clear in the docs "why" the old method got deprecated.

@cocojoe cocojoe merged commit 43c0200 into master Dec 28, 2017
@cocojoe cocojoe added this to the v1-Next milestone Dec 28, 2017
@cocojoe cocojoe deleted the updated-credentials-manager-face-id branch December 28, 2017 14:21
@cocojoe cocojoe mentioned this pull request Jan 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants