RIDI-Django-OAuth2-Resource
![Build Status](https://camo.githubusercontent.com/efb1ee1b12c057d240be4168a99ab077647d9508757fe6a7280e4b21fe4b6043/68747470733a2f2f7472617669732d63692e6f72672f726964692f726964692d646a616e676f2d6f61757468322d7265736f757263652e7376673f6272616e63683d6d6173746572)
Introduction
- OAuth2 Resource 서버를 구현하기 위한 Django용 라이브러리입니다.
- 해당 라이브러리는 리디의 OAuth2 Resource 서버 규칙에 따라 작성 되었습니다.
Requirement
Django 2.0.0
or higher
Python 3.6
or higher
Usage
INSTALLED_APPS = [
# ...
'ridi_django_oauth2_resource',
]
# Middleware Setting
MIDDLEWARE_CLASSES = (
# ...
'ridi_django_oauth2_resource.middlewares.AuthenticationMiddleware',
)
AUTH_USER_MODEL = 'ridi_django_oauth2_resource.RidiUser'
# RIDI Setting
RIDI_OAUTH2_JWT_SECRET = 'this-is-jwt-secret'
RIDI_OAUTH2_CLIENT_ID = 'this-is-client-id'
RIDI_OAUTH2_CLIENT_SECRET = 'this-is-client-secret'
RIDI_OAUTH2_AUTHORIZATION_URL = 'https://{auth_server_host}/oauth2/authorize/'
RIDI_OAUTH2_TOKEN_URL: 'https://{auth_server_host}/oauth2/token/'
TODO