<@U0BLPSJAK> do you have any ideas for an optional...
# ktor
a
@Deactivated User do you have any ideas for an optional jwt auth? I thought I could use the
skipWhen
flag, which according to doc:
If there is no filters, authentication is required. If any filter returns true, authentication is not required.
Meaning that when it returns true, auth is optional. But it seems more like it completely skips the auth process.
1
📝 1
It would be nice to if there was a simple
optional
flag.
Another thing: From the current master it seems that alternative auth schemes will be supported in the next version?
d
I have a proposal branch with this: https://github.com/ktorio/ktor/compare/authenticate.optional But not sure if the final design. Also can’t find
skipWhen
in the documentation, probably I missed something; going to check.
a
The proposal looks good! Regarding the
skipWhen
, it's just what I read in the docs in IntelliJ