Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
G
gracedb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
99
Issues
99
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lscsoft
gracedb
Commits
1dfae374
Commit
1dfae374
authored
Jun 03, 2019
by
Tanner Prestegard
Committed by
GraceDB
Jun 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make X509 certificate subject unique
parent
b9bade4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
gracedb/ligoauth/migrations/0040_x509cert_unique_subject.py
gracedb/ligoauth/migrations/0040_x509cert_unique_subject.py
+20
-0
gracedb/ligoauth/models.py
gracedb/ligoauth/models.py
+1
-1
No files found.
gracedb/ligoauth/migrations/0040_x509cert_unique_subject.py
0 → 100644
View file @
1dfae374
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-06-03 17:24
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'ligoauth'
,
'0039_delete_alternateemail_model'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'x509cert'
,
name
=
'subject'
,
field
=
models
.
CharField
(
max_length
=
255
,
unique
=
True
),
),
]
gracedb/ligoauth/models.py
View file @
1dfae374
...
...
@@ -25,7 +25,7 @@ class RobotUser(User):
class
X509Cert
(
models
.
Model
):
"""Model for storing X.509 certificate subjects for API access"""
subject
=
models
.
CharField
(
max_length
=
300
)
subject
=
models
.
CharField
(
max_length
=
255
,
unique
=
True
,
null
=
False
)
users
=
models
.
ManyToManyField
(
User
)
...
...
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