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

xnat-openid-auth-plugin <--> Keycloak (implicit flow / authorization flow code)? #9

Open
AlbertoRedolfi opened this issue Jun 18, 2023 · 0 comments

Comments

@AlbertoRedolfi
Copy link

Dear All,
I would like to bring to your attention a problem I have.
We have configured XNAT v1.8.6.1 with your "xnat-openid-auth-plugin" (1.0.2 release) and we integrated/linked it through a Keycloak server. With the web-browsers we can authenticate without any problems in XNAT via Keycloak and your xnat-openid-auth-plugin, so everything works fine.
Recently, we would like to allow some users to programmatically access the XNAT infromation (e.g.: projects, MRIs, etc..), but here is where the problem starts.
I can get the tokens ("access_token" or "id_token") from the keyclaok clients, but then it is not clear to me if I can use one of them to connect to the XNAT server.
I have tried to use Python with specific libraries (XNATpy, pyXNAT, KeycloakopenID, etc..) and also the classic curl bash command whithout success.
Could you suggest me how to successfully establish this connection programmatically, or do you think it is not possibile because the "xnat-openid-auth-plugin" does not support this capability (e.g.: via implicit flow or authorization flow code)?
Thanks for your help,
Best, Alberto

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