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

Minio Login is not working from OIDC(keycloak). #3165

Closed
Ayur541 opened this issue Dec 19, 2023 · 6 comments
Closed

Minio Login is not working from OIDC(keycloak). #3165

Ayur541 opened this issue Dec 19, 2023 · 6 comments
Assignees

Comments

@Ayur541
Copy link

Ayur541 commented Dec 19, 2023

Hi,

I tried logging into MinIO with Keycloak which is failing and throwing below error.

Capture

Earlier versions of MinIO were logging in fine as stated in #3099 but when trying it with above mentioned (which was latest release) MinIO verison is failing.

I followed below steps for integrating MinIO with Keycloak.
https://github.com/minio/minio/blob/RELEASE.2022-09-17T00-09-45Z/docs/sts/keycloak.md
Please suggest a fix.

Thanks.

@dvaldivia
Copy link
Collaborator

We'll look into this @Ayur541

@adriangitvitz
Copy link
Contributor

Could you share your keycloak version ? And also could you verify that you are able to reach your keycloak instance, and any logs from your minio instance would be useful

@Ayur541
Copy link
Author

Ayur541 commented Dec 20, 2023

Could you share your keycloak version ? And also could you verify that you are able to reach your keycloak instance, and any logs from your minio instance would be useful

Sure @adriangitvitz ,

Keycloak version : 22.0.5

Yes, it's able to reach keycloak and after entering the login credentials for keycloak, I see the above pasted error page but no logs from any instances are seen.

@adriangitvitz
Copy link
Contributor

could you follow these instructions instead ?
https://min.io/docs/minio/macos/operations/external-iam/configure-keycloak-identity-management.html

and verify your URL on the Keycloak client side

Screenshot 2024-01-11 at 12 04 39 a m

Also verify your client scopes ( just in case ), and use this env variables

MINIO_IDENTITY_OPENID_CLIENT_ID_PRIMARY_IAM=client-id;
MINIO_IDENTITY_OPENID_CLIENT_SECRET_PRIMARY_IAM=client-secret;
MINIO_IDENTITY_OPENID_CONFIG_URL_PRIMARY_IAM=well-known-url;
MINIO_IDENTITY_OPENID_DISPLAY_NAME_PRIMARY_IAM=SSO_IDENTIFIER;
MINIO_IDENTITY_OPENID_REDIRECT_URI_DYNAMIC_PRIMARY_IAM=on;
MINIO_IDENTITY_OPENID_SCOPES_PRIMARY_IAM=openid

@cesnietor
Copy link
Collaborator

We'll change the README docs to point to the proper doc link.

@dvaldivia
Copy link
Collaborator

please re-open if the problem persists

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

No branches or pull requests

4 participants