Skip to content

Commit 20b48a0

Browse files
committed
check custom auth before core auth
1 parent 38c8409 commit 20b48a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/cat/auth/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ async def __call__(
4343
# extract credentials (user_id, token_or_key) from connection
4444
user_id, credential = self.extract_credentials(connection)
4545
auth_handlers = [
46-
# try to get user from local idp
47-
connection.app.state.ccat.core_auth_handler,
4846
# try to get user from auth_handler
4947
connection.app.state.ccat.custom_auth_handler,
48+
# try to get user from local idp
49+
connection.app.state.ccat.core_auth_handler,
5050
]
5151
for ah in auth_handlers:
5252
user: AuthUserInfo = ah.authorize_user_from_credential(

0 commit comments

Comments
 (0)