I can no longer get panel (0.14.4) to work with oauth. Previously had it running in an older version, but won’t work anymore now. I am serving the app roughly as follows:
panel serve script.py --allow-websocket-origin="*" --port=5008 --oauth-provider="azure" --oauth-key="*" --oauth-secret="*" --oauth-extra-params="{'tenant':'*'}" --cookie-secret="*" --oauth-redirect-uri="*"
There are a few situtations I have tried, that fail in different ways
- The --oauth-redirect-uri includes the script i.e.
mysite.com/script
Loading the page immediately redirects me tomysite.com/script/login?next=%2f
which gives a 404 not found error. - The --oauth-redirect-uri is only the base webaddress i.e.
mysite.com
:
Where the information all matches those set in the app registration. When attempting to access my app, it properly redirects me to azure login. After logging in however, azure fails to redirect me back to my app. It appears to redirect tomysite.com/login
, which is not a valid link when servingscript.py
- I launch my app from login script i.e. panel serve login.py …
On accessing the site I immediately get a too many redirects prompt followed by 502 bad gateway.
Does anyone have any insight on what I might be doing wrong?