Skip to content

Commit

Permalink
Merge dependabot/github_actions/actions/checkout-4.2.1 into combined-…
Browse files Browse the repository at this point in the history
…prs-branch
  • Loading branch information
github-actions[bot] authored Oct 7, 2024
2 parents 4c71e1f + 46126e6 commit 450dac2
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
steps:

- name: Checkout Code Repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.1

- name: Set up Python
uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.1
with:
fetch-depth: 0
- uses: gitleaks/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pip-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout Code Repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.1
with:
ref: ${{ github.head_ref }}

Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
exclude: 'docs|node_modules|migrations|.git|.tox'
default_stages: [commit]
default_stages: [pre-commit]
fail_fast: true

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.5
rev: v0.6.9
hooks:
# Run the linter.
- id: ruff
Expand All @@ -21,7 +21,7 @@ repos:
- id: ruff-format

- repo: https://github.com/gitleaks/gitleaks
rev: v8.19.2
rev: v8.20.0
hooks:
- id: gitleaks

Expand Down
15 changes: 15 additions & 0 deletions gregor_django/templates/socialaccount/authentication_error.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% extends "socialaccount/base.html" %}

{% load i18n %}

{% block head_title %}{% trans "Social Network Login Failure" %}{% endblock %}

{% block content %}
<h1>{% trans "Social Network Login Failure" %}</h1>

<p>{% trans "Sorry. An error occurred while attempting to login via your social network account." %}</p>

<p class='alert alert-error'>
Authentication error code: {{ auth_error.code }}, Error: {{ auth_error.exception }}
</p>
{% endblock %}
8 changes: 8 additions & 0 deletions gregor_django/users/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,11 @@ def update_user_data(self, sociallogin: Any):
self.update_user_research_centers(user, extra_data)
self.update_user_partner_groups(user, extra_data)
self.update_user_groups(user, extra_data)

def authentication_error(self, request, provider_id, error, exception, extra_context):
"""
Invoked when there is an error in auth cycle.
Log so we know what is going on.
"""
logger.error(f"[SocialAccountAdapter:authentication_error] Error {error} Exception: {exception}")
super().authentication_error(request, provider_id, error, exception, extra_context)

0 comments on commit 450dac2

Please sign in to comment.