Skip to content

ahmetonurslmz/oauth2.0

Repository files navigation

The OAuth 2.0 Authorization Framework

OAuth2.0 authorization server that is intermediary with client and resource owner in order to issue access token which enables client to access resource server.

Run

Change .env.production file name to .env,
Create new cluster on mongoDB and set connection url to MONGO_URL env variable,
Add a SERVER_KEY to .env file to use it in some security verification,
To run project, in the directory of project type to terminal npm run serve

Process

Generate server keys,
Create client and keep client id,

Authorization Code Grant Type:
Receive Authorization Code with client id,
Issue Access Token with authorization code, client_id and 'code' grant_type.

Password Grant Type:
Issue Access Token with random username, random password, client_id and 'token' grant_type.

Specification

About

OAuth2.0 authorization server that is intermediary with client and resource owner in order to issue access token to enable client to access resource server.

Topics

Resources

License

Stars

Watchers

Forks