Suppose I have some analytics app that requires authentication (either through bokeh’s authenticator or Django’s authentication system)… Is there a way to pass this user information to panel in order to offer personalized analytics?
This would be useful for things like returning to a user’s last dashboard state, or offer the ability for them to access 3rd party services with some API credentials they had saved to our database.
I know Phillip is working on easy Auth for Panel. So you can look for that Pr on github and see if there is anything in the new code you can use. If not do a feature request.
I would expect something like a user, user I’d or user token to be available as a secure cookie in the request. I would expect you could get access to that.
I have tried implementing Auth a described in the bokeh docs. Both simple Auth and azure ad Auth. I did an implementation based on msal package. Again that was based on setting a secure user cookie.
I also need to be able to get the user. But for personalization of the app, restricting access and using the user token to get access to data services.