Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Michael Coughlin
GraceDB Server
Commits
3c0d1653
Commit
3c0d1653
authored
11 years ago
by
Brian Moe
Browse files
Options
Downloads
Patches
Plain Diff
Closes
https://bugs.ligo.org/redmine/issues/920
REST API won't allow label creation. PUT's to /api/events/GRACEID/labels/LABELNAME fails
parent
773a2329
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gracedb/api.py
+4
-13
4 additions, 13 deletions
gracedb/api.py
with
4 additions
and
13 deletions
gracedb/api.py
+
4
−
13
View file @
3c0d1653
...
...
@@ -18,6 +18,7 @@ import os
import
urllib
import
errno
import
shutil
import
exceptions
from
utils.vfile
import
VersionedFile
...
...
@@ -116,19 +117,9 @@ def reverse(name, *args, **kw):
class
LigoAuthentication
(
authentication
.
BaseAuthentication
):
def
authenticate
(
self
,
request
):
# XXX This might be gibberish. Esp given new LIGO.ORG auth features.
#
# LIGOAuth middleware finds you from X509 cert, but
# Shib middleware clobbers (?) the Django user in request
# and identifies you as anonymous. Need to recover the
# Django user.
user
=
None
try
:
if
request
.
user
.
is_active
:
user
=
request
.
user
except
:
pass
return
(
user
,
None
)
# XXX This makes little sense. https://bugs.ligo.org/redmine/issues/920
raise
exceptions
.
AuthenticationFailed
(
"
Bad user
"
)
class
EventSerializer
(
serializers
.
ModelSerializer
):
...
...
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