Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mike Gabriel
AlekSIS-Core
Commits
34d529a4
Verified
Commit
34d529a4
authored
3 years ago
by
Tom Teichler
Browse files
Options
Downloads
Patches
Plain Diff
Install django-jwt-auth and add url routes
parent
a8f3e565
Branches
387-jwt-provider-consumer-support
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/core/settings.py
+2
-0
2 additions, 0 deletions
aleksis/core/settings.py
aleksis/core/urls.py
+3
-0
3 additions, 0 deletions
aleksis/core/urls.py
with
5 additions
and
0 deletions
aleksis/core/settings.py
+
2
−
0
View file @
34d529a4
...
...
@@ -107,6 +107,7 @@ INSTALLED_APPS = [
"
debug_toolbar
"
,
"
django_prometheus
"
,
"
django_select2
"
,
"
jwt_auth
"
,
"
templated_email
"
,
"
html2text
"
,
"
django_otp.plugins.otp_totp
"
,
...
...
@@ -165,6 +166,7 @@ MIDDLEWARE = [
"
impersonate.middleware.ImpersonateMiddleware
"
,
"
django.contrib.messages.middleware.MessageMiddleware
"
,
"
django.middleware.clickjacking.XFrameOptionsMiddleware
"
,
"
jwt_auth.middleware.JWTAuthenticationMiddleware
"
,
"
maintenance_mode.middleware.MaintenanceModeMiddleware
"
,
"
aleksis.core.util.middlewares.EnsurePersonMiddleware
"
,
"
django_prometheus.middleware.PrometheusAfterMiddleware
"
,
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/urls.py
+
3
−
0
View file @
34d529a4
...
...
@@ -10,6 +10,7 @@ import debug_toolbar
from
ckeditor_uploader
import
views
as
ckeditor_uploader_views
from
django_js_reverse.views
import
urls_js
from
health_check.urls
import
urlpatterns
as
health_urls
from
jwt_auth
import
views
as
jwt_auth_views
from
oauth2_provider.views
import
ConnectDiscoveryInfoView
from
rules.contrib.views
import
permission_required
from
two_factor.urls
import
urlpatterns
as
tf_urls
...
...
@@ -224,6 +225,8 @@ urlpatterns = [
name
=
"
edit_default_dashboard
"
,
),
path
(
"
pdfs/<int:pk>/
"
,
views
.
RedirectToPDFFile
.
as_view
(),
name
=
"
redirect_to_pdf_file
"
),
path
(
"
token-auth/
"
,
jwt_auth_views
.
jwt_token
),
path
(
"
token-refresh/
"
,
jwt_auth_views
.
refresh_jwt_token
),
]
# Use custom server error handler to get a request object in the template
...
...
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