Commit 3dc116c3 authored by Jean-Baptiste's avatar Jean-Baptiste

update: make it works with solid auth client

parent 81f26dbe
......@@ -31,6 +31,7 @@ LOGIN_URL = '/accounts/login/'
OIDC_USERINFO = 'djangoldp_account.settings.userinfo'
OIDC_REGISTRATION_ENDPOINT_REQ_TOKEN = False
OIDC_REGISTRATION_ENDPOINT_ALLOW_HTTP_ORIGIN = True
AUTHENTICATION_BACKENDS = [...,'djangoldp_account.auth.backends.ExternalUserBackend']
```
......@@ -44,7 +45,8 @@ Note: The url provided must contains /openid-configuration (for instance : https
Once authentication on theothersite.com an account will be create on mysite.org and you'll be authentified both on theothersite.com and on mysite.com.
## How to know a user is authenticated
## How to know a user is authenticated (Not on any specification)
Useful in case of the client do NOT wants to store token in storage for security reason.
When a user is authenticated on the server, any request will contains the header `User` with user webid
For instance :
......
......@@ -34,8 +34,8 @@ urlpatterns = [
url(r'^oidc/login/callback/?$', RPLoginCallBackView.as_view(), name='oidc_login_callback'),
url(r'^oidc/login/?$', RPLoginView.as_view(), name='oidc_login'),
url(r'^\.well-known/webfinger/?$', WebFingerView.as_view()),
url(r'^openid/userinfo/?$', userinfocustom),
url(r'^openid/', include('oidc_provider.urls', namespace='oidc_provider'))
url(r'^userinfo/?$', userinfocustom),
url(r'^', include('oidc_provider.urls', namespace='oidc_provider'))
]
s_fields = []
s_fields.extend(user_fields)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment