Repository를clone합니다.
git clone https://github.com/Promotion-official/AmongAuth-AuthServer.gitrequirement.txt를 이용하여 필요한package를 다운받습니다.
pip install -r requirements.txt-
다음 명령어를 통해 프로그램을 실행시킵니다.
python src/main.py -R -P 5225
# -R은 저장시 자동 실행 옵션이며, -P는 프로그램을 동작시킬 포트 번호이다. 공백시에 환경변수에 입력된 값으로 실행됩니다.- 다음으로 요청을 보내, 서버가 잘 작동하는지 확인을 한다.
- 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"
}