OpenIdConnectAuth <class 'TypeError'>, not sure what's actually wrong. #17121
-
I get an error when I try to login with openid:
I am trying to get it to work with Authelia but I cannot find any example configs for it with Netbox and am having to figure it out on my own. Because of that I assume I've made an error in the config somewhere. But this error doesn't tell me anything that helps. Anyone have any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Perhaps you could start by showing your config? You can find sample configs for keycloak and vault in the discussion archives. |
Beta Was this translation helpful? Give feedback.
-
I ran into the same issue that you are having. I'm also using docker compose. You have to initialize those variables in your SOCIAL_AUTH_OIDC_OIDC_ENDPOINT=environ.get('SOCIAL_AUTH_OIDC_OIDC_ENDPOINT')
SOCIAL_AUTH_OIDC_ID_KEY=environ.get('SOCIAL_AUTH_OIDC_ID_KEY')
SOCIAL_AUTH_OIDC_SECRET=environ.get('SOCIAL_AUTH_OIDC_SECRET')
SOCIAL_AUTH_OIDC_SCOPE=environ.get('SOCIAL_AUTH_OIDC_SCOPE') After doing that, I was able to get it off the ground! Good luck. |
Beta Was this translation helpful? Give feedback.
I don't know anything about Authelia, but:
I'm not 100% sure you can use
social_core.backends.open_id_connect.OpenIdConnectAuth
directly without subclassing it. A while back, I tried to contribute this feature rather than a custom Vault subclass. Full gory history in python-social-auth/social-core#669 but some of it (the group membership part) was reverted in python-social-auth/social-core#692Even if that were to work, I think you've got the wrong redirect_uris:
should be
But having said that, I'd…