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

missing part of Social auth configuration at production environment #5526

Closed
2 tasks done
kbc8894 opened this issue Dec 28, 2022 · 0 comments
Closed
2 tasks done

missing part of Social auth configuration at production environment #5526

kbc8894 opened this issue Dec 28, 2022 · 0 comments
Assignees
Labels
auth Authentication or authorization functionality bug Something isn't working

Comments

@kbc8894
Copy link

kbc8894 commented Dec 28, 2022

My actions before raising this issue

Expected Behaviour

The variables SOCIAL_APP_LOGIN_REDIRECT_URL, GOOGLE_CALLBACK_URL, GITHUB_CALLBACK_URL should be changeable

Current Behaviour

It doesn't change.
so, I hard coded GOOGLE_CALLBACK_URL, SOCIAL_APP_LOGIN_REDIRECT_URL variable at cvat/settings/base.py
and build

docker build -t cvat/server:v2.3.0 .

It works.

Possible Solution

some code added at cvat/settings/production.py like cvat/settings/development.py and guide

Steps to Reproduce (for bugs)

  1. behind reverse proxy (ex. nginx proxy manager) for ssl.
  2. Create docker-compose.override.yml with the following code
version: '3.3'
services:
  cvat_server:
    environment:
      USE_ALLAUTH_SOCIAL_ACCOUNTS: 'True'
      SOCIAL_AUTH_GOOGLE_CLIENT_ID: '<YOUR_GOOGLE_CLIENT_ID>'
      SOCIAL_AUTH_GOOGLE_CLIENT_SECRET: '<YOUR_GOOGLE_CLIENT_SECRET>'
      GOOGLE_CALLBACK_URL: https://cvat.example.com/api/auth/google/login/callback/
      SOCIAL_APP_LOGIN_REDIRECT_URL: 'https://cvat.example.com/auth/login-with-social-app'
  1. In a terminal, run the following command
CVAT_HOST=cvat.example.com docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d

Context

Your Environment

  • Git hash commit (git log -1):
  • Docker version docker version (e.g. Docker 17.0.05):
  • Are you using Docker Swarm or Kubernetes?
  • Operating System and version (e.g. Linux, Windows, MacOS):
  • Code example or link to GitHub repo or gist to reproduce problem:
  • Other diagnostic information / logs:
    Logs from `cvat` container
@Marishka17 Marishka17 self-assigned this Dec 28, 2022
@nmanovic nmanovic added auth Authentication or authorization functionality bug Something isn't working labels Jan 2, 2023
nmanovic pushed a commit that referenced this issue Jan 16, 2023
The callback url is hardcoded, so I cannot  run CVAT on Cloud platform.
This patch enable to replace these parameters via environment variables.

#5526
mikhail-treskin pushed a commit to retailnext/cvat that referenced this issue Jul 1, 2023
The callback url is hardcoded, so I cannot  run CVAT on Cloud platform.
This patch enable to replace these parameters via environment variables.

cvat-ai#5526
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Authentication or authorization functionality bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants