99
1010
1111@app .route ('/application/<app_id>' )
12- @auth .oidc_auth
12+ @auth .oidc_auth ( "default" )
1313@before_request
1414def get_application (app_id , info = None ):
1515 applicant_info = Applicant .query .filter_by (id = app_id ).first ()
@@ -33,7 +33,7 @@ def get_application(app_id, info=None):
3333 fields = fields )
3434
3535@app .route ('/application/content/<app_id>' )
36- @auth .oidc_auth
36+ @auth .oidc_auth ( "default" )
3737def get_application_pdf (app_id ):
3838 applicant_info = Applicant .query .filter_by (id = app_id ).first ()
3939 resp = s3 .get_object (Bucket = app .config ['S3_BUCKET_NAME' ], Key = '/' + applicant_info .rit_id + '.pdf' )
@@ -42,7 +42,7 @@ def get_application_pdf(app_id):
4242
4343
4444@app .route ('/application' , methods = ['POST' ])
45- @auth .oidc_auth
45+ @auth .oidc_auth ( "default" )
4646def create_application ():
4747 applicant_rit_id = request .form .get ('rit_id' )
4848 applicant = Applicant (
@@ -60,7 +60,7 @@ def create_application():
6060
6161
6262@app .route ('/application/import' , methods = ['POST' ])
63- @auth .oidc_auth
63+ @auth .oidc_auth ( "default" )
6464#@before_request
6565def import_application ():
6666 word_file = request .files ['file' ]
@@ -115,7 +115,7 @@ def import_application():
115115
116116
117117@app .route ('/application/delete/<app_id>' , methods = ['GET' ])
118- @auth .oidc_auth
118+ @auth .oidc_auth ( "default" )
119119@before_request
120120def delete_application (app_id , info = None ):
121121 is_evals = '/eboard-evaluations' in info ['group_list' ]
@@ -136,7 +136,7 @@ def delete_application(app_id, info=None):
136136
137137
138138@app .route ('/application/create' )
139- @auth .oidc_auth
139+ @auth .oidc_auth ( "default" )
140140@before_request
141141def get_application_creation (info = None ):
142142 is_evals = '/eboard-evaluations' in info ['group_list' ]
@@ -149,7 +149,7 @@ def get_application_creation(info=None):
149149
150150
151151@app .route ('/application/<app_id>' , methods = ['POST' ])
152- @auth .oidc_auth
152+ @auth .oidc_auth ( "default" )
153153@before_request
154154def submit_application (app_id , info = None ):
155155 member = Members .query .filter_by (username = info ['uid' ]).first ()
@@ -193,12 +193,12 @@ def submit_application(app_id, info=None):
193193
194194
195195@app .route ('/application/review/<app_id>' , methods = ['GET' ])
196- @auth .oidc_auth
196+ @auth .oidc_auth ( "default" )
197197@before_request
198198def review_application (app_id , info = None ):
199199 applicant_info = Applicant .query .filter_by (id = app_id ).first ()
200200 evaluated = bool (Submission .query .filter_by (application = app_id , medium = 'Phone' ).all ())
201- scores = Submission .query .filter_by (application = app_id ).all ()
201+ scores = Submission .query .filter_by (application = app_id ).all ()
202202 return render_template (
203203 'review_app.html' ,
204204 info = info ,
@@ -209,7 +209,7 @@ def review_application(app_id, info=None):
209209
210210
211211@app .route ('/application/phone/<app_id>' , methods = ['GET' ])
212- @auth .oidc_auth
212+ @auth .oidc_auth ( "default" )
213213@before_request
214214def get_phone_application (app_id , info = None ):
215215 applicant_info = Applicant .query .filter_by (id = app_id ).first ()
@@ -232,7 +232,7 @@ def get_phone_application(app_id, info=None):
232232
233233
234234@app .route ('/application/phone/<app_id>' , methods = ['POST' ])
235- @auth .oidc_auth
235+ @auth .oidc_auth ( "default" )
236236@before_request
237237def promote_application (app_id , info = None ):
238238 score = request .form .get ('score' )
0 commit comments