Skip to content

Commit

Permalink
Black format
Browse files Browse the repository at this point in the history
  • Loading branch information
utement committed Oct 17, 2023
1 parent 650c61d commit a6f1056
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 25 deletions.
44 changes: 22 additions & 22 deletions django_project_base/account/social_auth/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,46 @@
{
"name": "AUTHENTICATION_BACKENDS",
"default": (
'social_core.backends.facebook.FacebookOAuth2',
'social_core.backends.google.GoogleOAuth2',
'social_core.backends.twitter.TwitterOAuth',
'social_core.backends.microsoft.MicrosoftOAuth2',
'social_core.backends.github.GithubOAuth2',
'social_core.backends.gitlab.GitLabOAuth2',
"social_core.backends.facebook.FacebookOAuth2",
"social_core.backends.google.GoogleOAuth2",
"social_core.backends.twitter.TwitterOAuth",
"social_core.backends.microsoft.MicrosoftOAuth2",
"social_core.backends.github.GithubOAuth2",
"social_core.backends.gitlab.GitLabOAuth2",
# 'social_core.backends.apple.AppleIdAuth', # not fully tested yet
),
"description": "Social login authentication backends. Add desired authentication backends to "
"Django’s AUTHENTICATION_BACKENDS setting.",
"Django’s AUTHENTICATION_BACKENDS setting.",
},
{
"name": "SOCIAL_AUTH_REDIRECT_IS_HTTPS",
"default": False,
"description": "On projects behind a reverse proxy that uses HTTPS, the redirect URIs can have the wrong "
"schema (http:// instead of https://) if the request lacks the appropriate headers, which might "
"cause errors during the auth process. To force HTTPS in the "
"final URIs set this setting to True",
"schema (http:// instead of https://) if the request lacks the appropriate headers, which might "
"cause errors during the auth process. To force HTTPS in the "
"final URIs set this setting to True",
},
{
"name": "SOCIAL_AUTH_LOGIN_REDIRECT_URL",
"default": "/",
"description": "Used to redirect the user once the auth process ended successfully. "
"The value of ?next=/foo is used if it was present",
"The value of ?next=/foo is used if it was present",
},
{
"name": "SOCIAL_AUTH_PIPELINE",
"default": (
'social_core.pipeline.social_auth.social_details',
'social_core.pipeline.social_auth.social_uid',
'social_core.pipeline.social_auth.auth_allowed',
'social_core.pipeline.social_auth.social_user',
'social_core.pipeline.user.get_username',
'social_core.pipeline.social_auth.associate_by_email',
'social_core.pipeline.user.create_user',
'social_core.pipeline.social_auth.associate_user',
'social_core.pipeline.social_auth.load_extra_data',
'social_core.pipeline.user.user_details',
"social_core.pipeline.social_auth.social_details",
"social_core.pipeline.social_auth.social_uid",
"social_core.pipeline.social_auth.auth_allowed",
"social_core.pipeline.social_auth.social_user",
"social_core.pipeline.user.get_username",
"social_core.pipeline.social_auth.associate_by_email",
"social_core.pipeline.user.create_user",
"social_core.pipeline.social_auth.associate_user",
"social_core.pipeline.social_auth.load_extra_data",
"social_core.pipeline.user.user_details",
),
"description": "python-social-auth authentication workflow pipeline. The default pipeline is a mechanism "
"that creates user instances and gathers basic data from providers.",
"that creates user instances and gathers basic data from providers.",
},
)
4 changes: 1 addition & 3 deletions django_project_base/licensing/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ class Migration(migrations.Migration):
),
(
"date",
models.DateTimeField(
default=django.utils.timezone.now, verbose_name="Date"
),
models.DateTimeField(default=django.utils.timezone.now, verbose_name="Date"),
),
(
"type",
Expand Down

0 comments on commit a6f1056

Please sign in to comment.