Skip to content

Instantly share code, notes, and snippets.

@kakky
kakky / yahoojp.py
Last active December 1, 2020 11:39
Example of Yahoo! JAPAN OpenID Connect (YConnect) backend using python-social-auth
# -*- coding: utf-8 -*-
"""
yohoojp.py - Yahoo! JAPAN OpenID Connect (YConnect) backends of python-social-auth.
https://github.com/omab/python-social-auth
http://developer.yahoo.co.jp/yconnect/
settings.py should include the following:
SOCIAL_AUTH_YAHOOJP_OIDC_KEY = '...'
SOCIAL_AUTH_YAHOOJP_OIDC_SECRET = '...'
SOCIAL_AUTH_YAHOOJP_OIDC_AUTH_EXTRA_ARGUMENTS = {'display': 'touch', 'prompt': 'login'}