Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bookshare
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
30
Issues
30
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
SRCT
bookshare
Commits
c4dd0be8
Commit
c4dd0be8
authored
Aug 20, 2015
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved the peoplefinder api url to the settings file
parent
f8ad3f66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
bookshare/core/cas_callbacks.py
bookshare/core/cas_callbacks.py
+2
-1
bookshare/settings/settings.py
bookshare/settings/settings.py
+3
-0
No files found.
bookshare/core/cas_callbacks.py
View file @
c4dd0be8
...
...
@@ -4,11 +4,12 @@ from django.contrib.auth.models import User
# third-part imports
import
requests
# imports from your apps
from
django.conf
import
settings
from
.models
import
Student
def
pfinfo
(
u_name
):
pf_url
=
"http://peoplefinder.b1.akshaykarthik.com/"
pf_url
=
settings
.
PF_URL
url
=
str
(
pf_url
)
+
"basic/all/"
+
str
(
u_name
)
try
:
metadata
=
requests
.
get
(
url
)
...
...
bookshare/settings/settings.py
View file @
c4dd0be8
...
...
@@ -112,6 +112,9 @@ AUTHENTICATION_BACKENDS = (
'cas.backends.CASBackend'
,
)
# Peoplefinder API for user creation
PF_URL
=
"http://peoplefinder.b1.akshaykarthik.com/"
CAS_SERVER_URL
=
'https://login.gmu.edu'
CAS_LOGOUT_COMPLETELY
=
True
CAS_PROVIDE_URL_TO_LOGOUT
=
True
...
...
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