Skip to content

nishihere19/DAuth-Backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Delta oauth2.0 service provider

Prerequisites

  • nodejs
  • mysql

Setup

  • install dependencies

    npm ci
    
  • database and migrations

    npx prisma migrate dev
    
  • Run cp .env.example .env

  • fill in the database credentials in the .env file

  • Run npm run dev

Authorization Code Flow

authorization code flow dance

Authorize endpoint

POST /oauth/authorize HTTP/1.1
Host: localhost:3001
Content-Type: application/x-www-form-urlencoded

client_id=qwdsfgwrTHNHRMYUKTILY&redirect_uri=https%3A%2F%2Fstackoverflow.com%2F&response_type=code&grant_type=authorization_code&state=sdafsdghb&scope=email+openid+profile&nonce=bscsbascbadcsbasccabs

Token endpoint

POST /oauth/token HTTP/1.1
Host: localhost:3001
Content-Type: application/x-www-form-urlencoded

client_id=qwdsfgwrTHNHRMYUKTILY&client_secret=csadvfbgnrwmywtkulifjrknjvnjrnlrnjvlnfvnflv&grant_type=authorization_code&code=f65dbf63a96650e689ef9f800a63ed67177ebe45&redirect_uri=https%3A%2F%2Fstackoverflow.com%2F

key endpoint

GET /oauth/oidc/key HTTP/1.1
Host: localhost:3001

Accepted Scopes

  • email
  • profile
  • openid
  • user

About

Backend for the Delta Oauth2 Service

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.6%
  • Shell 1.1%
  • Dockerfile 0.3%