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

Implement default identity provider using postgres #63

Closed
8 tasks
aeneasr opened this issue Apr 1, 2016 · 1 comment
Closed
8 tasks

Implement default identity provider using postgres #63

aeneasr opened this issue Apr 1, 2016 · 1 comment
Labels
feat New feature or request.
Milestone

Comments

@aeneasr
Copy link
Member

aeneasr commented Apr 1, 2016

This will be part of #62

I want hydra to be able to maintain a list of identity providers which can be added and removed using the CLI:

hydra idp add https://identities.foobar.com/
hydra idp remove https://identities.foobar.com/

Hydra should ship a default/exemplary identity provider using postgres located here. Identity providers must implement an HTTP REST interface with (at least) the following capabilities:

Mandatory (used by Hydra):

  • GET /identities: Should return all known identities. Should support pagination.
  • GET /identities/<id>: Should return an identities information
  • POST /authenticate: Should return an identitiy if valid credentials are given. Question: What to support id/password, username/password, email/password, ... ?

Recommended: Not used by Hydra but useful in a real world scenario:

  • POST /identities: Should create a new user
  • DELETE /identities/<id>: Should delete a user
  • PUT /identities/<id>/password: Should update the identities password

Optional features:

  • Password reset
  • ... ?

Identities should be sent using JSON:

{
    "id": "12341234" // mandatory
    // ...
}

Errors should be sent using the HTTP status header and a JSON message:

{
    "error": "Not found",
    "description": "some reason"
}

For inspiration check out the current account module

@aeneasr aeneasr added the feat New feature or request. label Apr 1, 2016
@aeneasr aeneasr added this to the 0.1-beta milestone Apr 1, 2016
@aeneasr
Copy link
Member Author

aeneasr commented May 17, 2016

superseded by #62

@aeneasr aeneasr closed this as completed May 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant