Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

realm.open_id_connec code except throwing a missing argument error #46

Open
chrisadkin-zz opened this issue Aug 12, 2021 · 0 comments
Open

Comments

@chrisadkin-zz
Copy link

I'm running code based on this excerpt:

from keycloak.realm import KeycloakRealm

realm = KeycloakRealm(server_url='https://example.com', realm_name='my_realm')

oidc_client = realm.open_id_connect(client_id='my-client',
                                    client_secret='very-secret-client-secret')

It is throwing the following error:

Missing argument in parameter list.
+ CategoryInfo : ParserError: ( : ) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument

I suspect that realm package has changed since the documentation was last updated and that it now needs a third argument, self - populated from the contents of config.py ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant