Hello, We're using bearer authentication in our pr...
# ktor
d
Hello, We're using bearer authentication in our project. However we need to use custom header names, instead of the default ones. I saw that the AuthConfig scope of the Auth plugin gives us a
MutableList<AuthProvider>
. Also the
AuthProvider
is a public interface. Is it intended for the consumers to create custom
AuthProviders
and plug them into the list, or is this more of a hack? There aren't official references in the documentation. Only the kotlindoc. I'm asking, just to make sure that this API is stable and we wouldn't expect changes in the upcoming versions.
a
The
AuthProvider
is designed to be implemented by the users to introduce new authentication providers. Do you have any problems implementing the custom provider?
d
No problems currently. It's just that we didn't see it in the official documentation and needed reassurance that we're not doing any hacks.
a
I see your feedback on the documentation. We're going to update the docs.
d
Thank you ❤️