pulsejet / nextcloud-oidc-login

Nextcloud login via a single OpenID Connect 1.0 provider
https://apps.nextcloud.com/apps/oidc_login
GNU Affero General Public License v3.0
234 stars 63 forks source link

OpenID Connect Login with keycloak integration issue #299

Open shafiunmiraz0 opened 1 month ago

shafiunmiraz0 commented 1 month ago

Greetings everyone!! I am trying to intregrate the keycloak in nextcloud aio 8 and nextcloud version 29. I have added below lines in the config.php 'allow_user_to_change_display_name' => false, 'lost_password_link' => 'disabled', 'oidc_login_default_quota' => '1000000000', 'oidc_login_button_text' => 'Log in with OpenID', 'oidc_login_hide_password_form' => false, 'oidc_login_use_id_token' => false, 'oidc_login_default_group' => 'oidc', 'oidc_login_allowed_groups' => null, 'oidc_login_filter_allowed_values' => null, 'oidc_login_use_external_storage' => false, 'oidc_login_scope' => 'openid profile', 'oidc_login_proxy_ldap' => false, 'oidc_login_disable_registration' => true, 'oidc_login_alt_login_page' => false, 'oidc_login_tls_verify' => true, 'oidc_create_groups' => false, 'oidc_login_webdav_enabled' => false, 'oidc_login_password_authentication' => false, 'oidc_login_public_key_caching_time' => 86400, 'oidc_login_min_time_between_jwks_requests' => 10, 'oidc_login_well_known_caching_time' => 86400, 'oidc_login_update_avatar' => false, 'oidc_login_skip_proxy' => false, 'oidc_login_code_challenge_method' => '', 'overwriteprotocol' => 'https', 'oidc_login_client_id' => 'nextcloud', 'oidc_login_client_secret' => 'secret', // Client Secret: Got to Clients -> Client -> Credentials 'oidc_login_provider_url' => '', 'oidc_login_end_session_redirect' => true, // Keycloak 18+ 'oidc_login_logout_url' => '', // Keycloak 18+ 'oidc_login_auto_redirect' => true, 'oidc_login_redir_fallback' => true, 'oidc_login_attributes' => array( 'id' => 'preferred_username', 'mail' => 'email'

I have maintained correct syatex. But whenever I try to login using keycloak the page redicts to the login page back. It is not taking to anyware. Not letting login the user To inform that I have deployed nextcloud aio using Helm charts and it is running on a production grade k8s cluster.

I also tried installing the openID connect login via the admin dashboard. But still not working. But keycloak is working fine for Social Login.

brunoscota commented 4 hours ago

Having the same issue.