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

External authentication failed #40

Open
Electromaster232 opened this issue Mar 27, 2023 · 3 comments
Open

External authentication failed #40

Electromaster232 opened this issue Mar 27, 2023 · 3 comments

Comments

@Electromaster232
Copy link

Actual behaviour

Error shown "External authentication failed"

Expected behaviour

User is logged in

Steps to reproduce

OAuth2 is configured with our corporate IdP, Authentik. All that is needed to trigger the error is to configure the provider and then attempt to login. No other information is provided besides the error and I am unsure how to debug this issue.

Configuration

  • Plugin version: 1.0.2
  • Kanboard version: 1.2.27
  • Database type and version: MySQL 10.3.34-MariaDB-log-cll-lve
  • PHP version: 7.4.29
  • OS: Linux 4.18.0-348.20.1.lve.1.el7h.x86_64
  • Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36

Attached you will find logs with debug mode activated
kanboardlogs.txt

@uniqueNullptr2
Copy link

Also getting this error although I have different logs
Using keycloak
I get the error message Warning: Trying to access array offset on null in /var/www/app/app/Core/User/UserProfile.php on line 56
when trying to log in

I also have the following in my kanboard logs

PHP message: PHP Warning:  Trying to access array offset on null in /var/www/app/app/Core/User/UserProfile.php on line 56"
PHP message: Kanboard: user Unknown authentication failure with IP address: <IP address>"
2023/12/21 19:16:55 [error] 15#15: *201 FastCGI sent in stderr: "PHP message: PHP Warning:  Trying to access array offset on null in /var/www/app/app/Core/User/UserProfile.php on line 56; PHP message: Kanboard: user Unknown authentication failure with IP address: 185.209.196.228" while reading response header from upstream, client: 172.18.0.1, server: localhost, request: "GET /oauth/callback?state=<token> HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "<mydomain>"

I looked at the code and this seems to be related to LDAP group sync. I tried setting LDAP_GROUP_SYNC to false but the error stil lhappens

I have no group key and group filter configured in the oauth settings

@Trapulo
Copy link

Trapulo commented Apr 3, 2024

I have the same problem and error authenticating with EntraID

@Trapulo
Copy link

Trapulo commented Apr 3, 2024

I solved fixing user API url as "https://graph.microsoft.com/v1.0/me", not as described in plugin's doc

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

No branches or pull requests

3 participants