Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
greg
Manage
Activity
Members
Labels
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
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
it-bott-integrasjoner
greg
Merge requests
!106
Add some OIDC flow tests.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add some OIDC flow tests.
oidc-tests
into
master
Overview
2
Commits
6
Pipelines
9
Changes
5
All threads resolved!
Show all comments
Merged
Sivert Kronen Hatteberg
requested to merge
oidc-tests
into
master
3 years ago
Overview
2
Commits
6
Pipelines
9
Changes
5
All threads resolved!
Show all comments
Expand
Enable testing for gregui, add a django config for testing.
0
0
Merge request reports
Compare
master
version 8
69c84b9c
3 years ago
version 7
74d203db
3 years ago
version 6
8c380853
3 years ago
version 5
f6b18cf8
3 years ago
version 4
1d11b0f2
3 years ago
version 3
1137927a
3 years ago
version 2
b83bd624
3 years ago
version 1
89aa74e3
3 years ago
master (base)
and
version 6
latest version
59e34643
6 commits,
3 years ago
version 8
69c84b9c
6 commits,
3 years ago
version 7
74d203db
5 commits,
3 years ago
version 6
8c380853
4 commits,
3 years ago
version 5
f6b18cf8
5 commits,
3 years ago
version 4
1d11b0f2
4 commits,
3 years ago
version 3
1137927a
3 commits,
3 years ago
version 2
b83bd624
2 commits,
3 years ago
version 1
89aa74e3
1 commit,
3 years ago
5 files
+
257
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
gregsite/settings/testing.py
0 → 100644
+
44
−
0
Options
from
.base
import
*
AUTHENTICATION_BACKENDS
=
[
"
gregui.authentication.auth_backends.DevBackend
"
,
# Fake dev backend
"
django.contrib.auth.backends.ModelBackend
"
,
# default
"
gregui.authentication.auth_backends.GregOIDCBackend
"
,
"
sesame.backends.ModelBackend
"
,
# link login
]
OIDC_RP_CLIENT_ID
=
"
lalalalala
"
OIDC_RP_CLIENT_SECRET
=
"
lalalalala
"
LOGIN_REDIRECT_URL
=
"
http://localhost:3000/
"
LOGOUT_REDIRECT_URL
=
"
http://localhost:3000/
"
CSRF_COOKIE_SAMESITE
=
"
Strict
"
SESSION_COOKIE_SAMESITE
=
"
Lax
"
# CSRF_COOKIE_HTTPONLY = True
# SESSION_COOKIE_HTTPONLY = True
ALLOWED_HOSTS
+=
[
"
localhost
"
,
"
127.0.0.1
"
]
# EMAIL_HOST = "smtp.uio.no"
# EMAIL_PORT = "468"
# EMAIL_USE_SSL = True
# EMAIL_TIMEOUT = 2
# DEFAULT_FROM_EMAIL = "noreply@uio.no"
EMAIL_BACKEND
=
"
django.core.mail.backends.console.EmailBackend
"
ORGREG_CLIENT
=
{
"
endpoints
"
:
{
"
base_url
"
:
"
https://example.com/fake/
"
},
"
headers
"
:
{
"
X-Gravitee-Api-Key
"
:
"
bar
"
},
}
Q_CLUSTER
=
{
"
name
"
:
"
greg
"
,
"
workers
"
:
4
,
"
timeout
"
:
90
,
"
retry
"
:
120
,
"
queue_limit
"
:
50
,
"
bulk
"
:
10
,
"
orm
"
:
"
default
"
,
"
sync
"
:
True
,
}
Loading