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

Added all new credential related routes #217

Merged
merged 2 commits into from
May 17, 2017
Merged

Added all new credential related routes #217

merged 2 commits into from
May 17, 2017

Conversation

jenow
Copy link
Contributor

@jenow jenow commented May 12, 2017

Creation of new actions in auth controller:

  • deleteMyCredentials
  • createMyCredentials
  • getMyCredentials
  • hasMyCredentials
  • updateMyCredentials
  • validateMyCredentials
    Creation of new actions in security controller:
  • createCredentials
  • deleteCredentials
  • getCredentialFields
  • getCredentials
  • getAllCredentialFields
  • hasCredentials
  • updateCredentials
  • validateCredentials

# Conflicts:
#	src/Kuzzle.js
@jenow jenow self-assigned this May 12, 2017
@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (4.x@c71df5d). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##             4.x     #217   +/-   ##
======================================
  Coverage       ?   99.45%           
======================================
  Files          ?       16           
  Lines          ?     1845           
  Branches       ?      529           
======================================
  Hits           ?     1835           
  Misses         ?       10           
  Partials       ?        0
Impacted Files Coverage Δ
src/security/Security.js 100% <100%> (ø)
src/Kuzzle.js 99.66% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c71df5d...838a904. Read the comment docs.

* @param cb
* @returns {Security}
*/
Security.prototype.createCredentials = function (strategy, kuid, credentials, options, cb) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What if !strategy?

* @param cb
* @returns {Security}
*/
Security.prototype.deleteCredentials = function (strategy, kuid, options, cb) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What if !strategy?

Copy link
Contributor

Choose a reason for hiding this comment

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

This applies to all the following methods that accept strategy as the first argument.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Then kuzzle wil answer an error

Copy link
Contributor

Choose a reason for hiding this comment

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

ok then we assume that we leave the responsibility to Kuzzle. Approving.

@xbill82 xbill82 merged commit 21c5509 into 4.x May 17, 2017
@xbill82 xbill82 deleted the credentials-route branch May 17, 2017 08:11
@scottinet scottinet mentioned this pull request May 29, 2017
@scottinet scottinet mentioned this pull request Jun 20, 2017
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.

5 participants