Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ssoauth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
django
ssoauth
Commits
b25245f4
Commit
b25245f4
authored
7 years ago
by
Art
Browse files
Options
Downloads
Patches
Plain Diff
I already foresee angry confused users, so I added a verbose 403 page :)
parent
d3aef044
Branches
Branches containing commit
Tags
milter-0_7_2
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ssoauth/templates/403.html
+14
-0
14 additions, 0 deletions
ssoauth/templates/403.html
ssoauth/views.py
+1
-1
1 addition, 1 deletion
ssoauth/views.py
with
15 additions
and
1 deletion
ssoauth/templates/403.html
0 → 100644
+
14
−
0
View file @
b25245f4
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
403
</title>
</head>
<body>
<h1>
403 Forbidden
</h1>
<p>
You (
<code><strong>
{{ request.user }}
</strong></code>
) don't have permissions to access this page.
</p>
{% if not request.user.is_anonymous %}
<p><a
href=
"{% url "
sso-logout
"
%}"
>
Log Out
</a></p>
{% endif %}
</body>
</html>
This diff is collapsed.
Click to expand it.
ssoauth/views.py
+
1
−
1
View file @
b25245f4
...
@@ -104,7 +104,7 @@ class LoggedOutLocallyView(TemplateView):
...
@@ -104,7 +104,7 @@ class LoggedOutLocallyView(TemplateView):
def
get_context_data
(
self
,
**
kwargs
):
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
().
get_context_data
(
**
kwargs
)
context
=
super
().
get_context_data
(
**
kwargs
)
context
[
"
IDP_LOGOUT_URL
"
]
=
app_settings
.
IDP_LOGOUT_URL
context
[
"
IDP_LOGOUT_URL
"
]
=
app_settings
.
IDP_LOGOUT_URL
or
"
#
"
context
[
"
THIS_SITE
"
]
=
get_current_site
(
self
.
request
)
context
[
"
THIS_SITE
"
]
=
get_current_site
(
self
.
request
)
return
context
return
context
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment