Skip to content

Azure OAuth not working with multiple accounts #8634

Description

@MarcSkovMadsen

We have for the last two years been trying to setup Azure Oauth for our Panel apps without success. Many problems have been solved along the way. But the problem remaining is that Azure Oauth does not work when having multiple azure accounts (personal + admin).

The problem is well known and described here https://panel.holoviz.org/how_to/authentication/trouble_shooting.html#cause-multiple-accounts.

You can see the problem in action below where it oauth only works for me if I use incognito mode.

Image
bokeh.min.js?v=2630124d82b67a204b9c9da925d3d456e9ec585bb0cf8f839a1c704dbee3f200b70d237916a9fd429755022dc83ac334505cd7385ebb4453a7b17aa1d3699c35:249 WebSocket connection to 'wss://...REMOVED.../panel-oauth-test/panel_app/ws' failed: 
connect @ bokeh.min.js?v=2630124d82b67a204b9c9da925d3d456e9ec585bb0cf8f839a1c704dbee3f200b70d237916a9fd429755022dc83ac334505cd7385ebb4453a7b17aa1d3699c35:249
bokeh.min.js?v=2630124d82b67a204b9c9da925d3d456e9ec585bb0cf8f839a1c704dbee3f200b70d237916a9fd429755022dc83ac334505cd7385ebb4453a7b17aa1d3699c35:249 [bokeh 3.9.0] Failed to connect to Bokeh server: Could not open websocket
_on_error @ bokeh.min.js?v=2630124d82b67a204b9c9da925d3d456e9ec585bb0cf8f839a1c704dbee3f200b70d237916a9fd429755022dc83ac334505cd7385ebb4453a7b17aa1d3699c35:249
bokeh.min.js?v=2630124d82b67a204b9c9da925d3d456e9ec585bb0cf8f839a1c704dbee3f200b70d237916a9fd429755022dc83ac334505cd7385ebb4453a7b17aa1d3699c35:248 [bokeh 3.9.0] Failed to load Bokeh session pJKROf71epgaXLhoJlnQRikGVYIql2VFTj0IIGl1A9gV: Error: Could not open websocket
n.add_document_from_session @ bokeh.min.js?v=2630124d82b67a204b9c9da925d3d456e9ec585bb0cf8f839a1c704dbee3f200b70d237916a9fd429755022dc83ac334505cd7385ebb4453a7b17aa1d3699c35:248
bokeh.min.js?v=2630124d82b67a204b9c9da925d3d456e9ec585bb0cf8f839a1c704dbee3f200b70d237916a9fd429755022dc83ac334505cd7385ebb4453a7b17aa1d3699c35:164 Error rendering Bokeh items: Error: Could not open websocket
    at p._on_error (bokeh.min.js?v=2630124d82b67a204b9c9da925d3d456e9ec585bb0cf8f839a1c704dbee3f200b70d237916a9fd429755022dc83ac334505cd7385ebb4453a7b17aa1d3699c35:249:5776)
    at Promise.socket.onerror (bokeh.min.js?v=2630124d82b67a204b9c9da925d3d456e9ec585bb0cf8f839a1c704dbee3f200b70d237916a9fd429755022dc83ac334505cd7385ebb4453a7b17aa1d3699c35:249:1728)
k @ bokeh.min.js?v=2630124d82b67a204b9c9da925d3d456e9ec585bb0cf8f839a1c704dbee3f200b70d237916a9fd429755022dc83ac334505cd7385ebb4453a7b17aa1d3699c35:164
favicon.ico:1  Failed to load resource: the server responded with a status of 404 ()

The recommended workarounds of deleting all browsing data, using incognito mode or another browser are not working solutions. They cause a lot of problems for most users who would not understand and accept these kinds of problems they don't experience any where else.

For us it means we have not been able to introduce oauth even though trying for the last two years. For others it could easily mean rejection of the whole framework by IT.

Please fix. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions