A minimal, fast and ready to use oauth2 implementation.
Endpoint | description |
---|---|
/oauth2/credentials | client id & client secret generator |
/oauth2/token | access_token generation |
/oauth2/introspect | return meta information surrounding the token |
Check this guideline
Variable | Description |
---|---|
token_secret | alphanumeric string required to jwt token generation |
token_life | string representation of token expiration time. Example: 10s, 50m, 1h,etc |
database_host | mysql database host. Ip or domain |
database_user | user to login into mysql database host. |
database_password | password related to database_user. |
database_port | mysql port. Most of the time is 3306 |
database_name | name of database. |
database_connection_management | database connection type: single or pool. Default: single |
database_connection_pool_limit | The maximum number of database connections to create at once. Check this |
auth_realm | alphanumeric string required to basic auth entropy. |
auth_user | user to perform requests to /oauth2/credentials endpoint . |
auth_password | password related to auth_user |
TZ | Linux timezone. IMPORTANT FOR DATES AND EXPIRATION TIME. Example: 'America/Lima' |
More details about required variables here
Just
npm install
Export required variables, startup your mysql
And execute
npm run dev
Just
npm install
Export required variables, startup your mysql
And execute
npm run start
Check this guideline
Check this guideline
Check this
|