17
17
18
18
from profile .forms import RegistrationForm
19
19
20
- from pyauth0jwt . auth0authenticate import public_user_auth_and_jwt
20
+ from hypatio . dbmiauthn_services import DBMIAuthn
21
21
from pyauth0jwt .auth0authenticate import user_auth_and_jwt
22
22
23
23
from projects .models import AGREEMENT_FORM_TYPE_EXTERNAL_LINK
@@ -72,7 +72,7 @@ def signed_agreement_form(request):
72
72
return HttpResponse (403 )
73
73
74
74
75
- @public_user_auth_and_jwt
75
+ @DBMIAuthn . public_user_auth_and_jwt
76
76
def list_data_projects (request , template_name = 'projects/list-data-projects.html' ):
77
77
"""
78
78
Displays all visible data projects.
@@ -84,7 +84,7 @@ def list_data_projects(request, template_name='projects/list-data-projects.html'
84
84
return render (request , template_name , context = context )
85
85
86
86
87
- @public_user_auth_and_jwt
87
+ @DBMIAuthn . public_user_auth_and_jwt
88
88
def list_data_challenges (request , template_name = 'projects/list-data-challenges.html' ):
89
89
"""
90
90
Displays all visible data challenges.
@@ -96,7 +96,7 @@ def list_data_challenges(request, template_name='projects/list-data-challenges.h
96
96
return render (request , template_name , context = context )
97
97
98
98
99
- @public_user_auth_and_jwt
99
+ @DBMIAuthn . public_user_auth_and_jwt
100
100
def list_software_projects (request , template_name = 'projects/list-software-projects.html' ):
101
101
"""
102
102
Displays all visible software projects.
@@ -108,7 +108,7 @@ def list_software_projects(request, template_name='projects/list-software-projec
108
108
return render (request , template_name , context = context )
109
109
110
110
111
- @method_decorator (public_user_auth_and_jwt , name = 'dispatch' )
111
+ @method_decorator (DBMIAuthn . public_user_auth_and_jwt , name = 'dispatch' )
112
112
class DataProjectView (TemplateView ):
113
113
"""
114
114
Builds and renders screens related to DataProject signup and participation.
0 commit comments