Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
sso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhanhua kuang
sso
Commits
85e9b0d3
Commit
85e9b0d3
authored
Feb 27, 2020
by
zkuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adapt deployment changes
parent
aebd66e2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
14 deletions
+40
-14
.gitignore
.gitignore
+21
-0
settings.cpython-38.pyc
account/__pycache__/settings.cpython-38.pyc
+0
-0
urls.cpython-38.pyc
account/__pycache__/urls.cpython-38.pyc
+0
-0
settings.py
account/settings.py
+15
-14
urls.py
account/urls.py
+4
-0
No files found.
.gitignore
0 → 100644
View file @
85e9b0d3
.*~
venv
*.pyc
__pycache__/
instance/
.pytest_cache/
.coverage
htmlcov/
dist/
build/
*.egg-info/
.~*
carbinet-admin-web.bak/
carbinet.sh
dump.rdb
.DS_Store
account/__pycache__/settings.cpython-38.pyc
deleted
100644 → 0
View file @
aebd66e2
File deleted
account/__pycache__/urls.cpython-38.pyc
deleted
100644 → 0
View file @
aebd66e2
File deleted
account/settings.py
View file @
85e9b0d3
...
...
@@ -23,9 +23,9 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY
=
'1gboig1)_)ljuz_h0&8m
%
s84ybxz4*z!w0pu$0qi#mobo#poae'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
Tru
e
DEBUG
=
Fals
e
ALLOWED_HOSTS
=
[]
ALLOWED_HOSTS
=
[
'sso.gzego.com'
]
# Application definition
...
...
@@ -76,8 +76,12 @@ WSGI_APPLICATION = 'account.wsgi.application'
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.sqlite3'
,
'NAME'
:
os
.
path
.
join
(
BASE_DIR
,
'db.sqlite3'
),
'ENGINE'
:
'django.db.backends.mysql'
,
'NAME'
:
'sso'
,
'USER'
:
'cas'
,
'PASSWORD'
:
'123456'
,
'HOST'
:
'mysql'
,
# Or an IP Address that your DB is hosted on
'PORT'
:
'3306'
,
}
}
...
...
@@ -120,23 +124,19 @@ USE_TZ = True
STATIC_URL
=
'/static/'
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
STATIC_ROOT
=
os
.
path
.
join
(
BASE_DIR
,
'static'
)
MAMA_CAS_ENABLE_SINGLE_SIGN_OUT
=
True
MAMA_CAS_SERVICES
=
[
{
'SERVICE'
:
'http://localhost:8100'
,
'CALLBACKS'
:
[
'mama_cas.callbacks.user_name_attributes'
,
],
'LOGOUT_ALLOW'
:
True
,
'LOGOUT_URL'
:
'http://localhost:8100/accounts/callback'
,
},
{
'SERVICE'
:
'http://localhost:5000/api/cas'
,
'SERVICE'
:
'http://carbinet.gzego.com:8080/api/cas'
,
'CALLBACKS'
:
[
'mama_cas.callbacks.user_model_attributes'
,
],
'LOGOUT_ALLOW'
:
True
,
'LOGOUT_URL'
:
'http://
localhost:500
0/api/cas/logout'
,
'LOGOUT_URL'
:
'http://
carbinet.gzego.com:808
0/api/cas/logout'
,
},
]
\ No newline at end of file
account/urls.py
View file @
85e9b0d3
...
...
@@ -15,9 +15,12 @@ Including another URLconf
"""
from
django.contrib
import
admin
from
django.urls
import
path
,
include
from
django.contrib.staticfiles.urls
import
staticfiles_urlpatterns
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
r''
,
include
(
'mama_cas.urls'
)),
]
urlpatterns
+=
staticfiles_urlpatterns
()
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment