but it seems like only the first auth method given...
# ktor
m
but it seems like only the first auth method given in
authenticate("auth1", "auth2")
is used. So if I change to
authenticate("auth2", "auth1")
then basic auth works but not the other way around.
h
Is it that it establishes priority or arg2-n is actually entirely ignored?
m
It seems that whenever I have two arguments it ignores the second one, or at least I think what happens.
I was wrong. It seems to be a bug in ktor-jwk, whenever it fails to authenticate it will not let the next authentication provider try but rather return immediately. If I put basic-auth first and JWK second then it works as expected.