You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gurant is an OAuth 2.0 provider built with Typescript/NodeJS. It is an authorization framework based on the OAuth 2.0 Specification.
Additionally, it also has a built-in authentication using Firebase. Currently, it is opinionated and will only support Firebase.
Lastly, this project uses Hasura's GrahpQL Engine for handling database queries and mutations. That would also mean that Gurant is database agnostic as long as Hasura supports it.
value MUST be the same with state parameter passed in the request
POST /oauth2/token?grant_type=authorization_code
This endpoint is responsible for generating tokens using the previously generated authorization code.
This also requires client authentication (HTTP Basic Auth).
A hint about the type of the token submitted for revocation. For now, the value MUST be access_token only
Response Payload
property
type
description
status
string
the HTTP status
statusCode
number
the HTTP status code
Utility Endpoints
GET /health
This endpoint is used for health checks
Response Payload
property
type
description
status
string
the HTTP status
statusCode
number
the HTTP status code
GET /generate-crypto-keys
This endpoint SHOULD NOT be exposed in production as it SHOULD only be used for debugging purposes.
Generates a secret_key and an initialization vector.
Response Payload
property
type
description
secret_key
string
the raw key used by the algorithm and the initialization vector
initialization_vector
string
a cryptographically random 16 byte string
GET /generate-jwt-keys
This endpoint SHOULD NOT be exposed in production as it SHOULD only be used for debugging purposes.
Generates a public and private signed with the secp256r1 elliptic curve.