File tree Expand file tree Collapse file tree 3 files changed +13
-15
lines changed Expand file tree Collapse file tree 3 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 4
4
# --- BEGIN_HEADER ---
5
5
#
6
6
# extcert - External certificate account sign up backend
7
- # Copyright (C) 2003-2023 The MiG Project lead by Brian Vinter
7
+ # Copyright (C) 2003-2025 The MiG Project by the Science HPC Center at UCPH
8
8
#
9
9
# This file is part of MiG.
10
10
#
25
25
# -- END_HEADER ---
26
26
#
27
27
28
- """Request account sign up with external certificate back end """
28
+ """Request account access through externally signed X509 certificate auth """
29
29
30
30
from __future__ import absolute_import
31
31
@@ -159,11 +159,9 @@ def main(client_id, user_arguments_dict):
159
159
fill_helpers ['readonly_%s' % field ] = ''
160
160
ro_fields = [i for i in accepted ['ro_fields' ] if i in
161
161
list (cert_field_map ) + given_peers ]
162
- # Only write -protect ID fields in auto-mode
163
- if keyword_auto in accepted ['ro_fields' ]:
162
+ # Write -protect ID fields in auto-mode or if already logged in
163
+ if keyword_auto in accepted ['ro_fields' ] or client_id :
164
164
ro_fields += [i for i in list (cert_field_map ) if not i in ro_fields ]
165
- # NOTE: lock all ID fields to current certificate here
166
- ro_fields += [i for i in id_fields if not i in ro_fields ]
167
165
for field in ro_fields :
168
166
fill_helpers ['readonly_%s' % field ] = 'readonly'
169
167
fill_helpers .update (user_fields )
Original file line number Diff line number Diff line change 3
3
#
4
4
# --- BEGIN_HEADER ---
5
5
#
6
- # reqcert - Certificate account request backend
7
- # Copyright (C) 2003-2023 The MiG Project lead by Brian Vinter
6
+ # reqcert - Local certificate request and account sign up backend
7
+ # Copyright (C) 2003-2025 The MiG Project by the Science HPC Center at UCPH
8
8
#
9
9
# This file is part of MiG.
10
10
#
25
25
# -- END_HEADER ---
26
26
#
27
27
28
- """Request certificate account back end """
28
+ """Request account access through locally signed X509 certificate auth """
29
29
30
30
from __future__ import absolute_import
31
31
@@ -196,8 +196,8 @@ def main(client_id, user_arguments_dict):
196
196
fill_helpers ['readonly_%s' % field ] = ''
197
197
ro_fields = [i for i in accepted ['ro_fields' ] if i in
198
198
list (cert_field_map ) + given_peers ]
199
- # Only write -protect ID fields in auto-mode
200
- if keyword_auto in accepted ['ro_fields' ]:
199
+ # Write -protect ID fields in auto-mode or if already logged in
200
+ if keyword_auto in accepted ['ro_fields' ] or client_id :
201
201
ro_fields += [i for i in list (cert_field_map ) if not i in ro_fields ]
202
202
if reset_token :
203
203
user_fields ['reset_token' ] = reset_token
Original file line number Diff line number Diff line change 4
4
# --- BEGIN_HEADER ---
5
5
#
6
6
# reqoid - OpenID account request backend
7
- # Copyright (C) 2003-2023 The MiG Project lead by Brian Vinter
7
+ # Copyright (C) 2003-2025 The MiG Project by the Science HPC Center at UCPH
8
8
#
9
9
# This file is part of MiG.
10
10
#
25
25
# -- END_HEADER ---
26
26
#
27
27
28
- """Request OpenID account back end """
28
+ """Request account access through built-in OpenID 2.0 service auth """
29
29
30
30
from __future__ import absolute_import
31
31
@@ -198,8 +198,8 @@ def main(client_id, user_arguments_dict):
198
198
fill_helpers ['readonly_%s' % field ] = ''
199
199
ro_fields = [i for i in accepted ['ro_fields' ] if i in
200
200
list (cert_field_map ) + given_peers ]
201
- # Only write -protect ID fields in auto-mode
202
- if keyword_auto in accepted ['ro_fields' ]:
201
+ # Write -protect ID fields in auto-mode or if already logged in
202
+ if keyword_auto in accepted ['ro_fields' ] or client_id :
203
203
ro_fields += [i for i in list (cert_field_map ) if not i in ro_fields ]
204
204
if reset_token :
205
205
user_fields ['reset_token' ] = reset_token
You can’t perform that action at this time.
0 commit comments