Skip to content

Promotion-official/AmongAuth-AuthServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Auth Server

기술스택

실행방법

  1. Repositoryclone 합니다.
git clone https://github.com/Promotion-official/AmongAuth-AuthServer.git
  1. requirement.txt를 이용하여 필요한 package를 다운받습니다.
pip install -r requirements.txt
  1. 환경변수를 입력해줍니다.

  2. 다음 명령어를 통해 프로그램을 실행시킵니다.

python src/main.py -R -P 5225
# -R은 저장시 자동 실행 옵션이며, -P는 프로그램을 동작시킬 포트 번호이다. 공백시에 환경변수에 입력된 값으로 실행됩니다.
  1. 다음으로 요청을 보내, 서버가 잘 작동하는지 확인을 한다.

API 명세서

POST /login

  • request
{
    "email" : "qudwls185@naver.com",
    "pw" : "1234",
    "redirect_url" : "http://0.0.0.0:4242/rb"
}
  • 302 Found, 200 Succes
GET /rb?code=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwdyI6IjEyMzQiLCJlbWFpbCI6InF1ZHdsczE4NUBuYXZlci5jb20ifQ.L-zOOPQwhgQHAubM0vc9eIy58LK3Gu4gC08IrAX0YDA
  • 400 Bad Request
{
    "detail": "Bad Request"
}
  • 500 Intenal Server Error
{
    "detail": "API Server Error"
}

Releases

No releases published

Packages

No packages published

Languages