Skip to content

auth server examples / boilerplates #1446

@tirumaraiselvan

Description

@tirumaraiselvan

Details:

Currently, auth/user management is delegated to a preferred choice of external auth service. A simple self managed service could be username/password based service on the same Postgres database as Hasura.

The service should have the following APIs:

  1. /register : Register a user using username and password.
  2. /login: Check creds and return an auth token.
  3. /resolve: Get auth token (from header), resolve it and return X-Hasura-User-Id and X-Hasura-Allowed-Roles

Deployment instructions:

  1. A migrations script (for required tables) should be included.
  2. A simple way to deploy on (any) cloud should be included.

Metadata

Metadata

Assignees

Labels

a/authzIssues related to "authorization" and the policy engine after session claims are procesedc/communityRelated to community contente/intermediatecan be wrapped up in a weekgood first issueGood for newcomershacktoberfesthelp wantedGood candidate for contribution. Community help wanted!p/mediumnon-urgent issues/features that are candidates for being included in one of the upcoming sprints

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions