|
@@ -37,6 +37,7 @@ INSTALLED_APPS = [
|
|
|
'django.contrib.sessions',
|
|
|
'django.contrib.messages',
|
|
|
'django.contrib.staticfiles',
|
|
|
+ 'testOpenId',
|
|
|
]
|
|
|
|
|
|
MIDDLEWARE = [
|
|
@@ -118,3 +119,21 @@ USE_TZ = True
|
|
|
# https://docs.djangoproject.com/en/2.0/howto/static-files/
|
|
|
|
|
|
STATIC_URL = '/static/'
|
|
|
+
|
|
|
+# Provider
|
|
|
+OpenID_SERVER = 'localhost:8000'
|
|
|
+
|
|
|
+# General urls on your provider:
|
|
|
+OpenID_AUTHORIZATION_URL = '/o/authorize' # Authorization URL
|
|
|
+OpenID_TOKEN_URL = '/o/token/' # Access token URL
|
|
|
+
|
|
|
+# The URL of some protected resource on your oauth2 server which you have configured to serve
|
|
|
+# json-encoded user information (containing at least an email) for the user associated
|
|
|
+# with a given access token.
|
|
|
+OpenID_RESOURCE_URL = '/userinfo'
|
|
|
+
|
|
|
+# From the configuration of your client site in the oauth2 provider
|
|
|
+OpenID_CLIENT_ID = 'SQm9g9AT7Rn4TKvnYlBZSszUQFnQOseq3O4XKxW6'
|
|
|
+OpenID_CLIENT_SECRET = 'MvJ8u5xD9j0KVTQKCyDxf4La6nJeOmIlXQKYhygWGjZAcv8drK2TjgrtRvaMD9BPRiONnbMYZIG3Eih7ujeTZc88IH6VkvSpmP8nXA4aTi61h8ufOh6mWsq9xjlrwi21'
|
|
|
+
|
|
|
+OpenID_CALLBACK_URL = 'localhost:8005/callback'
|