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
W
ws-eidaauth
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OSUG
RESIF
ws-eidaauth
Commits
2c2065e6
Commit
2c2065e6
authored
Jul 09, 2020
by
Jonathan Schaeffer
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing endyear of a network mapping.
parent
92e5c8de
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
README.md
README.md
+1
-1
eidawsauth/configurations/default.py
eidawsauth/configurations/default.py
+1
-1
eidawsauth/eidawsauth.py
eidawsauth/eidawsauth.py
+1
-1
eidawsauth/version.py
eidawsauth/version.py
+1
-1
No files found.
README.md
View file @
2c2065e6
...
...
@@ -92,7 +92,7 @@ What does this program do ?
4.
Register this in the resifAuth database, along with the
`expires_at`
value (24h)
5.
From the
`member-of`
field in the token :
-
do the mapping from EPOS names to FDSN reference from the epos_fdsn table in the resifAuth database
the FDSN reference is the network name, startyear
, endyear
the FDSN reference is the network name, startyear
-
register the login along with the FDSN references and the expiration date in the resifInv-Prod database, table
`access`
6.
Return the
`login:password`
to the client
...
...
eidawsauth/configurations/default.py
View file @
2c2065e6
...
...
@@ -26,5 +26,5 @@ class default():
PRIVILEGEDBPASSWORD
=
_dbpassword
EPOS_FDSN_MAP
=
{
'/epos/alparray'
:
{
'networkcode'
:
'Z3'
,
'startyear'
:
2015
,
'endyear'
:
2020
},
'/epos/alparray'
:
{
'networkcode'
:
'Z3'
,
'startyear'
:
2015
},
}
eidawsauth/eidawsauth.py
View file @
2c2065e6
...
...
@@ -133,7 +133,7 @@ def register_privileges(login, fdsn_refs):
ref
[
'networkid'
]
=
cur
.
fetchone
()[
0
]
logging
.
info
(
"Inserting tupple in %s.eida_temp_users: %s"
,
application
.
config
[
'PRIVILEGEDBNAME'
],
ref
)
cur
.
execute
(
"""
insert into eida_temp_users (network_id, network, start_year,
end_year, name, expires_at) values (%(networkid)s, %(networkcode)s, %(startyear)s, %(end
year)s, %(login)s, %(expires_at)s);
insert into eida_temp_users (network_id, network, start_year,
name, expires_at) values (%(networkid)s, %(networkcode)s, %(start
year)s, %(login)s, %(expires_at)s);
"""
,
ref
)
except
psycopg2
.
Error
as
e
:
logging
.
error
(
e
.
pgerror
)
...
...
eidawsauth/version.py
View file @
2c2065e6
__version__
=
'0.4.
0
'
__version__
=
'0.4.
2
'
Jonathan Schaeffer
@schaeffj
mentioned in commit
61524e4f
·
Jul 10, 2020
mentioned in commit
61524e4f
mentioned in commit 61524e4f326efe2a3cd89791b76efe2a8707620f
Toggle commit list
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