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

OAuth login failed: OAuthSignin #898

Open
1 task done
jermany182 opened this issue Jan 17, 2025 · 2 comments
Open
1 task done

OAuth login failed: OAuthSignin #898

jermany182 opened this issue Jan 17, 2025 · 2 comments
Labels
question Further information is requested

Comments

@jermany182
Copy link

jermany182 commented Jan 17, 2025

Describe the Bug

I'm trying to configure OAuth via Authentik. I'm having the error message "OAuth login failed: OAtuhSignIn"

Steps to Reproduce

Compose file:

version: "3.8"
services:
  web:
    image: ghcr.io/hoarder-app/hoarder:${HOARDER_VERSION:-release}
    restart: unless-stopped
    volumes:
      - data:/data
    ports:
      - 3000:3000
    env_file:
      - stack.env
    environment:
      NEXTAUTH_URL: https://hoarder.MyDomain.com
      NEXTAUTH_URL_INTERNAL: http://localhost:3000
      MEILI_ADDR: http://meilisearch:7700
      BROWSER_WEB_URL: http://chrome:9222
      OPENAI_API_KEY: CENSORED
      DATA_DIR: /data
      OAUTH_WELLKNOWN_URL: https://auth.MyDomain.com/application/o/hoarder/.well-known/openid-configuration
      OAUTH_CLIENT_SECRET: CENSORED
      OAUTH_CLIENT_ID: CENSORED
      OAUTH_SCOPE: openid email profile
      OAUTH_PROVIDER_NAME: Authentik
      OAUTH_ALLOW_DANGEROUS_EMAIL_ACCOUNT_LINKING: true
  chrome:
    image: gcr.io/zenika-hub/alpine-chrome:123
    restart: unless-stopped
    command:
      - --no-sandbox
      - --disable-gpu
      - --disable-dev-shm-usage
      - --remote-debugging-address=0.0.0.0
      - --remote-debugging-port=9222
      - --hide-scrollbars
  meilisearch:
    image: getmeili/meilisearch:v1.6
    restart: unless-stopped
    env_file:
      - stack.env
    environment:
      MEILI_NO_ANALYTICS: "true"
    volumes:
      - meilisearch:/meili_data

volumes:
  meilisearch:
    driver: local
    driver_opts:
      type: nfs
      o: addr=IP.IP.IP.IP,rw
      device: :/File/Share
  data:
    driver: local
    driver_opts:
      type: nfs
      o: addr=IP.IP.IP.IP,rw
      device: :/File/Share

Image

Expected Behaviour

Successful login

Screenshots or Additional Context

No response

Device Details

No response

Exact Hoarder Version

0.21.0

Have you checked the troubleshooting guide?

  • I have checked the troubleshooting guide and I haven't found a solution to my problem
@MohamedBassem
Copy link
Collaborator

Can you share the logs of the web container after the login attempt?

@MohamedBassem MohamedBassem added the question Further information is requested label Jan 18, 2025
@jermany182
Copy link
Author

[next-auth][error][SIGNIN_OAUTH_ERROR] 
https://next-auth.js.org/errors#signin_oauth_error self-signed certificate {
  error: {
    message: 'self-signed certificate',
    stack: 'Error: self-signed certificate\n' +
      '    at TLSSocket.onConnectSecure (node:_tls_wrap:1679:34)\n' +
      '    at TLSSocket.emit (node:events:524:28)\n' +
      '    at TLSSocket._finishInit (node:_tls_wrap:1078:8)\n' +
      '    at ssl.onhandshakedone (node:_tls_wrap:864:12)\n' +
      '    at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17)',
    name: 'Error'
  },
  providerId: 'custom',
  message: 'self-signed certificate'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants