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

The communication to retrieve user data has failed with status code 401 #290

Open
aukfood opened this issue Sep 9, 2024 · 1 comment
Open

Comments

@aukfood
Copy link

aukfood commented Sep 9, 2024

Hello,

I try oidc_login with Nextcloud 29.0.6 and Active Directory connection.

This is my oidc_login configuration :

  'oidc_login_provider_url' => 'https://adfs.url/adfs',
  'oidc_login_client_id' => 'client_id',
  'oidc_login_client_secret' => '',
  'oidc_login_auto_redirect' => false,
  'oidc_login_logout_url' => 'https://adfs.url/logout',
  'oidc_login_end_session_redirect' => false,
  'oidc_login_default_quota' => '1000000000',
  'oidc_login_button_text' => 'Login OpenID',
  'oidc_login_hide_password_form' => false,
  'oidc_login_use_id_token' => false,
  'oidc_login_attributes' => 
  array (
    'name' => 'name',
    'mail' => 'email',
  ),
  '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_redir_fallback' => false,
  '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' => '',

When I try to login with Nextcloud I have this error The communication to retrieve user data has failed with status code 401 and in Apache logs

IP - - [09/Sep/2024:16:06:23 +0200] "GET /index.php/apps/oidc_login/oidc?code=*************e&client-request-id=id HTTP/1.1" 500 10330 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0"

Where I can found more information to debug ?
Do you have an id from where this error come ?

Best regards

@aukfood
Copy link
Author

aukfood commented Sep 27, 2024

Hello, a little up about this problem an how to correct this ?

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