I’m still going in circles wit authentication inside my dash application.Although I can make both dash-okta-auth and dash-google-auth work out of the box (after proper configuration of the authentication provider endpoints) I cannot get user information (id of whoever is logged on).
Although I am not a proper developer, I went as far as making a local copy of dash-okta-auth (a close derivative of dash-google-auth) in my project to do some minor debugging – interestingly enough, inside the class OktaOAuth(Auth), the code
try: resp = okta.get("/oauth2/default/v1/userinfo") assert resp.ok, resp.text
always raises the exception, which is probably why I can’t find the userinfo anywhere in the OktaOAuth object.
On the other hand, I tried to circunvent the lack of information by interrogating the Okta endpoints directly. For example, a GET request on
works just fine, but another request that would, in principle, provide the information I need would proably require almost mimicking what dash-okta-auth is doing.
So, I’m almost stuck on this matter, but I need to find a solution for this urgently.
Any help out there? Someone that has a profound knowledge on authentication?