[GH-ISSUE #4185] [bug]: Do not have Email / SSO Sign in #1511

Open
opened 2026-03-16 20:38:21 +03:00 by kerem · 4 comments
Owner

Originally created by @seniyakk on GitHub (Jul 13, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4185

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Hello.
When I try to log in to Hoppscotch I have 3 options:

  • Github
  • Google
  • Microsoft
    Screenshot 2024-07-13 at 10 17 19
    Screenshot 2024-07-13 at 10 24 20

The instructions write that I can log in via email or SSO.

How to log in via email or SSO?

My docker-compose.yml

services:
  hoppscotch:
    container_name: hoppscotch
    restart: unless-stopped
    image: hoppscotch/hoppscotch
    depends_on:
      hoppscotch-db:
        condition: service_healthy
    command: pnpx prisma migrate deploy
    labels:
      traefik.enable: true

      traefik.http.routers.hoppscotch-http.rule: Host(`hoppscotch.yourserver`)
      traefik.http.routers.hoppscotch-http.entrypoints: web
      traefik.http.routers.hoppscotch-http.middlewares: https-redirect

      traefik.http.routers.hoppscotch-https.rule: Host(`hoppscotch..yourserver`)
      traefik.http.routers.hoppscotch-https.entrypoints: websecure
      traefik.http.routers.hoppscotch-https.tls: true
      traefik.http.routers.hoppscotch-https.tls.certresolver: prod

    environment:
      #-----------------------Backend Config------------------------------#
      DATABASE_URL: postgresql://hoppscotch:xB9pNCiBYTixLNQBrwmyGHMnQ7N6aWAXUCp5QEhi@hoppscotch-db:5432/hoppscotch # or replace with your database URL

      # Auth Tokens Config
      JWT_SECRET: secret
      TOKEN_SALT_COMPLEXITY: 10
      MAGIC_LINK_TOKEN_VALIDITY: 3
      REFRESH_TOKEN_VALIDITY: 604800000
      ACCESS_TOKEN_VALIDITY: 86400000
      SESSION_SECRET: anothersecret

      # Hoppscotch App Domain Config
      REDIRECT_URL: http://localhost:3000
      WHITELISTED_ORIGINS: http://localhost:3170,http://localhost:3000,http://localhost:3100
      VITE_ALLOWED_AUTH_PROVIDERS: EMAIL

      # Github Auth Config
      GITHUB_CLIENT_ID: text
      GITHUB_CLIENT_SECRET: text
      GITHUB_CALLBACK_URL: http://localhost:3170/v1/auth/github/callback
      GITHUB_SCOPE: user:email

      # Microsoft Auth Config
      MICROSOFT_CLIENT_ID: text
      MICROSOFT_CLIENT_SECRET: text
      MICROSOFT_CALLBACK_URL: http://localhost:3170/v1/auth/microsoft/callback
      MICROSOFT_SCOPE: user.read
      MICROSOFT_TENANT: common

      # # Mailer config
      MAILER_SMTP_URL: smtps://user@domain.com:pass@smtp.domain.com
      MAILER_ADDRESS_FROM: from@example.com

      # Rate Limit Config
      RATE_LIMIT_TTL: 60
      RATE_LIMIT_MAX: 100

      #-----------------------Frontend Config------------------------------#

      # Base URLs
      VITE_BASE_URL: http://localhost:3000
      VITE_SHORTCODE_BASE_URL: http://localhost:3000
      VITE_ADMIN_URL: http://localhost:3100

      # Backend URLs
      VITE_BACKEND_GQL_URL: http://localhost:3170/graphql
      VITE_BACKEND_WS_URL: wss://localhost:3170/graphql
      VITE_BACKEND_API_URL: http://localhost:3170/v1

      # Terms Of Service And Privacy Policy Links (Optional)
      VITE_APP_TOS_LINK: https://docs.hoppscotch.io/support/terms
      VITE_APP_PRIVACY_POLICY_LINK: https://docs.hoppscotch.io/support/privacy

      ENABLE_SUBPATH_BASED_ACCESS: false    
    networks:
        - traefik
        - hoppscotch
    ports:
        - 3000:3000
        - 3100:3100
        - 3170:3170
        - 3080:80

  hoppscotch-db:
    container_name: hoppscotch-db
    image: postgres:15
    ports:
      - 5432:5432
    user: postgres
    environment:
      POSTGRES_USER: hoppscotch
      POSTGRES_PASSWORD: xB9pNCiBYTixLNQBrwmyGHMnQ7N6aWAXUCp5QEhi
      POSTGRES_DB: hoppscotch
    healthcheck:
      test:
        [
          "CMD-SHELL",
          "sh -c 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'",
        ]
      interval: 5s
      timeout: 5s
      retries: 10
    volumes:
      - db:/var/lib/postgresql/data
    networks:
      - hoppscotch

volumes:
  db:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/hoppscotch/volumes/db

networks:
  traefik:
    external: true
  hoppscotch:
    name: hoppscotch

Steps to reproduce

  1. Compose up docker-compose.yml
  2. Try to login

Environment

Production

Version

Self-hosted

Originally created by @seniyakk on GitHub (Jul 13, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4185 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior Hello. When I try to log in to Hoppscotch I have 3 options: - Github - Google - Microsoft <img width="650" alt="Screenshot 2024-07-13 at 10 17 19" src="https://github.com/user-attachments/assets/5ba254c1-34fe-449f-80b8-fb5ac557149f"> <img width="578" alt="Screenshot 2024-07-13 at 10 24 20" src="https://github.com/user-attachments/assets/d754a6b1-7eba-4672-9a7c-e9468a60aeb8"> The instructions write that I can log in via email or SSO. **How to log in via email or SSO?** My docker-compose.yml ``` services: hoppscotch: container_name: hoppscotch restart: unless-stopped image: hoppscotch/hoppscotch depends_on: hoppscotch-db: condition: service_healthy command: pnpx prisma migrate deploy labels: traefik.enable: true traefik.http.routers.hoppscotch-http.rule: Host(`hoppscotch.yourserver`) traefik.http.routers.hoppscotch-http.entrypoints: web traefik.http.routers.hoppscotch-http.middlewares: https-redirect traefik.http.routers.hoppscotch-https.rule: Host(`hoppscotch..yourserver`) traefik.http.routers.hoppscotch-https.entrypoints: websecure traefik.http.routers.hoppscotch-https.tls: true traefik.http.routers.hoppscotch-https.tls.certresolver: prod environment: #-----------------------Backend Config------------------------------# DATABASE_URL: postgresql://hoppscotch:xB9pNCiBYTixLNQBrwmyGHMnQ7N6aWAXUCp5QEhi@hoppscotch-db:5432/hoppscotch # or replace with your database URL # Auth Tokens Config JWT_SECRET: secret TOKEN_SALT_COMPLEXITY: 10 MAGIC_LINK_TOKEN_VALIDITY: 3 REFRESH_TOKEN_VALIDITY: 604800000 ACCESS_TOKEN_VALIDITY: 86400000 SESSION_SECRET: anothersecret # Hoppscotch App Domain Config REDIRECT_URL: http://localhost:3000 WHITELISTED_ORIGINS: http://localhost:3170,http://localhost:3000,http://localhost:3100 VITE_ALLOWED_AUTH_PROVIDERS: EMAIL # Github Auth Config GITHUB_CLIENT_ID: text GITHUB_CLIENT_SECRET: text GITHUB_CALLBACK_URL: http://localhost:3170/v1/auth/github/callback GITHUB_SCOPE: user:email # Microsoft Auth Config MICROSOFT_CLIENT_ID: text MICROSOFT_CLIENT_SECRET: text MICROSOFT_CALLBACK_URL: http://localhost:3170/v1/auth/microsoft/callback MICROSOFT_SCOPE: user.read MICROSOFT_TENANT: common # # Mailer config MAILER_SMTP_URL: smtps://user@domain.com:pass@smtp.domain.com MAILER_ADDRESS_FROM: from@example.com # Rate Limit Config RATE_LIMIT_TTL: 60 RATE_LIMIT_MAX: 100 #-----------------------Frontend Config------------------------------# # Base URLs VITE_BASE_URL: http://localhost:3000 VITE_SHORTCODE_BASE_URL: http://localhost:3000 VITE_ADMIN_URL: http://localhost:3100 # Backend URLs VITE_BACKEND_GQL_URL: http://localhost:3170/graphql VITE_BACKEND_WS_URL: wss://localhost:3170/graphql VITE_BACKEND_API_URL: http://localhost:3170/v1 # Terms Of Service And Privacy Policy Links (Optional) VITE_APP_TOS_LINK: https://docs.hoppscotch.io/support/terms VITE_APP_PRIVACY_POLICY_LINK: https://docs.hoppscotch.io/support/privacy ENABLE_SUBPATH_BASED_ACCESS: false networks: - traefik - hoppscotch ports: - 3000:3000 - 3100:3100 - 3170:3170 - 3080:80 hoppscotch-db: container_name: hoppscotch-db image: postgres:15 ports: - 5432:5432 user: postgres environment: POSTGRES_USER: hoppscotch POSTGRES_PASSWORD: xB9pNCiBYTixLNQBrwmyGHMnQ7N6aWAXUCp5QEhi POSTGRES_DB: hoppscotch healthcheck: test: [ "CMD-SHELL", "sh -c 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'", ] interval: 5s timeout: 5s retries: 10 volumes: - db:/var/lib/postgresql/data networks: - hoppscotch volumes: db: driver: local driver_opts: type: none o: bind device: $VOLUMES_PATH_PREFIX/hoppscotch/volumes/db networks: traefik: external: true hoppscotch: name: hoppscotch ``` ### Steps to reproduce 1. Compose up docker-compose.yml 2. Try to login ### Environment Production ### Version Self-hosted
Author
Owner

@balub commented on GitHub (Jul 23, 2024):

Hey @seniyakk, the environment variables related to email/SMTP have been updated. Could you refer to the docs here to take a look at the new variables.

<!-- gh-comment-id:2246213801 --> @balub commented on GitHub (Jul 23, 2024): Hey @seniyakk, the environment variables related to email/SMTP have been updated. Could you refer to the docs [here](https://docs.hoppscotch.io/documentation/self-host/community-edition/install-and-build#:~:text=%23%20Mailer%20config%0AMAILER_SMTP_ENABLE,pass%0AMAILER_TLS_REJECT_UNAUTHORIZED%3Dtrue) to take a look at the new variables.
Author
Owner

@seniyakk commented on GitHub (Jul 28, 2024):

Hello, Balub. Thank you for your answer.
I updated my docker-compose.yml file by adding

      # Mailer config
      MAILER_SMTP_ENABLE: true
      MAILER_USE_CUSTOM_CONFIGS: false
      MAILER_SMTP_URL: smtps://myemail@gmail.com:cuJ7Kf7fNvyGY@smtp.gmail.com
      MAILER_ADDRESS_FROM: myemail@gmail.com

The rest of the file remained unchanged
I got an error: Unable to load auth providers
Screenshot 2024-07-28 at 08 32 03

Is it possible to log in through an SSO provider like Authentik?

<!-- gh-comment-id:2254522462 --> @seniyakk commented on GitHub (Jul 28, 2024): Hello, Balub. Thank you for your answer. I updated my docker-compose.yml file by adding ``` # Mailer config MAILER_SMTP_ENABLE: true MAILER_USE_CUSTOM_CONFIGS: false MAILER_SMTP_URL: smtps://myemail@gmail.com:cuJ7Kf7fNvyGY@smtp.gmail.com MAILER_ADDRESS_FROM: myemail@gmail.com ``` The rest of the file remained unchanged I got an error: Unable to load auth providers <img width="1710" alt="Screenshot 2024-07-28 at 08 32 03" src="https://github.com/user-attachments/assets/5ae857a3-6cb8-4dbe-88f9-1b16261b7672"> Is it possible to log in through an SSO provider like Authentik?
Author
Owner

@RainyPixel commented on GitHub (Aug 12, 2024):

+1

<!-- gh-comment-id:2284200983 --> @RainyPixel commented on GitHub (Aug 12, 2024): +1
Author
Owner

@tgmatt commented on GitHub (Nov 4, 2024):

Is it possible to log in through an SSO provider like Authentik?

Sadly no, you have to pay the SSO tax for that. Only insecure auth methods / social auth on the community edition. Someone did the work here but it was declined.

<!-- gh-comment-id:2455927952 --> @tgmatt commented on GitHub (Nov 4, 2024): > Is it possible to log in through an SSO provider like Authentik? Sadly no, you have to pay the SSO tax for that. Only insecure auth methods / social auth on the community edition. Someone did the work [here](https://github.com/hoppscotch/hoppscotch/pull/3266) but it was declined.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1511
No description provided.