Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Helios Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Helios Server
Commits
cc70c4ff
Commit
cc70c4ff
authored
10 years ago
by
Ben Adida
Browse files
Options
Downloads
Patches
Plain Diff
removed old pdb's and fixed csrf token setting to consider unicode
parent
206362de
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
helios/datatypes/legacy.py
+1
-1
1 addition, 1 deletion
helios/datatypes/legacy.py
helios_auth/auth_systems/openid/view_helpers.py
+0
-1
0 additions, 1 deletion
helios_auth/auth_systems/openid/view_helpers.py
helios_auth/security/__init__.py
+1
-1
1 addition, 1 deletion
helios_auth/security/__init__.py
with
2 additions
and
3 deletions
helios/datatypes/legacy.py
+
1
−
1
View file @
cc70c4ff
...
@@ -176,7 +176,7 @@ class DLogProof(LegacyObject):
...
@@ -176,7 +176,7 @@ class DLogProof(LegacyObject):
def
__init__
(
self
,
wrapped_obj
):
def
__init__
(
self
,
wrapped_obj
):
if
isinstance
(
wrapped_obj
,
dict
):
if
isinstance
(
wrapped_obj
,
dict
):
import
pdb
;
pdb
.
set_trace
(
)
raise
Exception
(
"
problem with dict
"
)
super
(
DLogProof
,
self
).
__init__
(
wrapped_obj
)
super
(
DLogProof
,
self
).
__init__
(
wrapped_obj
)
...
...
This diff is collapsed.
Click to expand it.
helios_auth/auth_systems/openid/view_helpers.py
+
0
−
1
View file @
cc70c4ff
...
@@ -65,7 +65,6 @@ def start_openid(session, openid_url, trust_root, return_to):
...
@@ -65,7 +65,6 @@ def start_openid(session, openid_url, trust_root, return_to):
error
=
"
OpenID discovery error: %s
"
%
(
str
(
e
),)
error
=
"
OpenID discovery error: %s
"
%
(
str
(
e
),)
if
error
:
if
error
:
import
pdb
;
pdb
.
set_trace
()
raise
Exception
(
"
error in openid
"
)
raise
Exception
(
"
error in openid
"
)
# Add Simple Registration request information. Some fields
# Add Simple Registration request information. Some fields
...
...
This diff is collapsed.
Click to expand it.
helios_auth/security/__init__.py
+
1
−
1
View file @
cc70c4ff
...
@@ -95,7 +95,7 @@ def get_user(request):
...
@@ -95,7 +95,7 @@ def get_user(request):
# request.session.set_expiry(settings.SESSION_COOKIE_AGE)
# request.session.set_expiry(settings.SESSION_COOKIE_AGE)
# set up CSRF protection if needed
# set up CSRF protection if needed
if
not
request
.
session
.
has_key
(
'
csrf_token
'
)
or
type
(
request
.
session
[
'
csrf_token
'
])
!=
str
:
if
not
request
.
session
.
has_key
(
'
csrf_token
'
)
or
(
type
(
request
.
session
[
'
csrf_token
'
])
!=
str
and
type
(
request
.
session
[
'
csrf_token
'
])
!=
unicode
)
:
request
.
session
[
'
csrf_token
'
]
=
str
(
uuid
.
uuid4
())
request
.
session
[
'
csrf_token
'
]
=
str
(
uuid
.
uuid4
())
if
request
.
session
.
has_key
(
'
user
'
):
if
request
.
session
.
has_key
(
'
user
'
):
...
...
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