Hey all!
I’m in need of defining a custom authentication provider for a panel application.
The auth backend in question does not support OAuth (unfortunately), so I’ve been referencing the built-in basic auth provider to understand how to do this.
I’m a bit confused about how to achieve this. I’ve tried the following:
-
A subclass of tornado.web.RequestHandler, which is configured with panel.config.auth = [my class]
-
A subclass of bokeh.server.auth_provider.AuthProvider configured the same way.
-
A subclass of tornado.web.RequestHandler, configured with an entry point statement in my pyproject.toml file, and passing auth_provider = “my auth provider” to panel.serve()
-
A subclass of bokeh.server.auth_provider.AuthProvider, configured the same way.
Is there a working example somewhere of a provider which takes a username and password, and uses a custom validation method for checking that the password is valid?
Thank you!