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
halley
12/07/2018, 8:09 PM
Is it that it establishes priority or arg2-n is actually entirely ignored?
m
mantono
12/08/2018, 4:36 PM
It seems that whenever I have two arguments it ignores the second one, or at least I think what happens.
mantono
12/10/2018, 11:45 AM
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.