Udata¶
Backend class¶
For Django, add this class path to AUTHENTICATION_BACKENDS. For other
integrations, use the same class path in the framework-specific backend
setting.
Backend name |
Class path |
|---|---|
|
|
Datagouvfr OAuth2¶
Datagouvfr supports OAuth2 for their API. In order to set it up:
Go get your your API key (previous account creation is required).
Fill Consumer Key and Consumer Secret values in settings:
SOCIAL_AUTH_DATAGOUVFR_KEY = '' SOCIAL_AUTH_DATAGOUVFR_SECRET = ''
Add
'social_core.backends.udata.DatagouvfrOAuth2'into yourSOCIAL_AUTH_AUTHENTICATION_BACKENDS.