Hi again @philippjfr,
The “Authorization callback URL” in GitHub is http://***.herokuapp.com. In the Procfile I didn’t use –oauth-redirect-uri= before but after you suggested I did try and the issue is still present. Unfortunately.
I tried random websites as redirect URL’s in GitHub and they all work like a charm. On a side note, they work even without putting the –oauth-redirect-uri=*** in the Procfile.
So, back to square one, I guess.
I have a feeling that the issue lies in this section of the log:
2020-11-26T00:33:43.468483+00:00 app[web.1]: Traceback (most recent call last):
2020-11-26T00:33:43.468484+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.6/site-packages/tornado/web.py”, line 1704, in _execute
2020-11-26T00:33:43.468485+00:00 app[web.1]: result = await result
2020-11-26T00:33:43.468485+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.6/site-packages/panel/auth.py”, line 241, in get
2020-11-26T00:33:43.468486+00:00 app[web.1]: user = await self.get_authenticated_user(**params)
2020-11-26T00:33:43.468487+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.6/site-packages/panel/auth.py”, line 108, in get_authenticated_user
2020-11-26T00:33:43.468487+00:00 app[web.1]: client_secret
2020-11-26T00:33:43.468488+00:00 app[web.1]: File “/app/.heroku/python/lib/python3.6/site-packages/panel/auth.py”, line 183, in _fetch_access_token
2020-11-26T00:33:43.468488+00:00 app[web.1]: headers=self._API_BASE_HEADERS
2020-11-26T00:33:43.468510+00:00 app[web.1]: tornado.httpclient.HTTPClientError: HTTP 400: Bad Request
Hoping, it might ring a bell, see the Procfile contents below.
web: panel serve --oauth-provider=github --oauth-key=*** --oauth-secret=*** --cookie-secret=secret --log-level=debug --address=“0.0.0.0” --port=$PORT app.py --allow-websocket-origin=***.herokuapp.com