66 Commits (0f0913c13886a7db534f1988ac3a5628f349945f)

Author SHA1 Message Date
ddx-day 0f0913c138
Django social account sso (#5059)
Issue: https://github.com/opencv/cvat/issues/1217

Currently there are a few proposals for SSO authentication to bypass the
current user/password login on the UI. By using Django social accounts
it is also possible to use SSO on the API, retrieving the security token
by passing the code from the OAuth2 workflow. This is an example using
Amazon Cognito, but any other social account could also be added.

### Motivation and context
Currently CVAT has no functionality to log in with SSO. Other current
proposals bypass the current Django framework to add SSO in the UI only,
but still use username and password for the API. Using Django social
accounts integrates SSO with the API as well, allowing it to be used as
an alternative to the username and password, but can also be used
together with other SSO frameworks that are UI only.

### How has this been tested?
Unit tests for SSO manager in cvat-core and integration test with
cvat-sdk for /auth/cognito endpoint.

### Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply.
If an item isn't applicable by a reason then ~~explicitly
strikethrough~~ the whole
line. If you don't do that github will show an incorrect process for the
pull request.
If you're unsure about any of these, don't hesitate to ask. We're here
to help! -->
- [x] I submit my changes into the `develop` branch
- [ ] I have added a description of my changes into
[CHANGELOG](https://github.com/cvat-ai/cvat/blob/develop/CHANGELOG.md)
file
- [x] I have updated the [documentation](
https://github.com/cvat-ai/cvat/blob/develop/README.md#documentation)
accordingly
- [x] I have added tests to cover my changes
- [x] I have linked related issues ([read github docs](

https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword))
- [ ] I have increased versions of npm packages if it is necessary
([cvat-canvas](https://github.com/cvat-ai/cvat/tree/develop/cvat-canvas#versioning),

[cvat-core](https://github.com/cvat-ai/cvat/tree/develop/cvat-core#versioning),
[cvat-data](https://github.com/cvat-ai/cvat/tree/develop/cvat-data#versioning)
and
[cvat-ui](https://github.com/cvat-ai/cvat/tree/develop/cvat-ui#versioning))

### License

- [x] I submit _my code changes_ under the same [MIT License](
https://github.com/cvat-ai/cvat/blob/develop/LICENSE) that covers the
project.
  Feel free to contact the maintainers if that's a concern.

Co-authored-by: Melanie Day <mday@EYEDIAGNOSIS.local>
Co-authored-by: Maria Khrustaleva <maria@cvat.ai>
Co-authored-by: Nikita Manovich <nikita@cvat.ai>
3 years ago
Maria Khrustaleva b00bc653ff
Social account authentication tests (#5444)
Depends on #5349
Related #5432
Added tests for social account authentication functionality: cypress
test with dummy auth server
3 years ago
Andrey Zhavoronkov 81f2b90368
Updated installation guide and workflows (#5578) 3 years ago
Roman Donchenko 580ae49e5a
Migrate to Docker Compose V2 (#5524)
Also, migrate to the version less Compose file format.

Compose V1 is EOL:
<https://www.docker.com/blog/announcing-compose-v2-general-availability/>.
3 years ago
Maxim Zhiltsov ec3e1f34a4
Better reporting for user limits (#5225)
- Added explanatory messages for actions denied for user limits
- Fixed few rules and checks
- Upgraded OPA version
3 years ago
Nikita Manovich 207116705f
v2.4.0.alpha (#5508)
Co-authored-by: Maxim Zhiltsov <zhiltsov.max35@gmail.com>
Co-authored-by: Kirill Sizov <kirill.sizov@cvat.ai>
3 years ago
Roman Donchenko 487c60ce2b
SDK: Add an adapter layer that presents a CVAT task as a torchvision dataset (#5417) 3 years ago
Maxim Zhiltsov 4e97c243d6
Refactor OPA tests (#5373)
- OPA tests are now autogenerated
- Updated invocation docs
3 years ago
Nikita Manovich a3bf41439d
Fix CI due to cypress verify works too long (#5320)
https://docs.cypress.io/guides/guides/command-line#cypress-verify
3 years ago
Boris Sekachev e5d01359aa
Removed code duplications, added checks to CI (#5253) 3 years ago
Andrey Zhavoronkov 49bdef01f1
IAM OPA bundle for dev environment (#5190) 3 years ago
Kirill Sizov 05598e0830
extend main workflow (#5213) 3 years ago
Kirill Sizov 12a295af72
Extend logs for CI workflows (#5179) 3 years ago
Kirill Sizov 4cd43a27c8
Refactor CI (#5060)
* workflows: add docker image scan for CI workflow

* enter debug mode

* update mod-wsgi dependency

* add Trivy image scanner for cvat/ui image

* add trivyignore file

* update trivyignore file

* try scan without trivyignore

* remove trivy scanner

* add workflow that updates yarn.lock file for PRs from Snyk

* remove extra empty lines

* revert changes for mod-wsgi version

* remove deprecated set-output for workflows

* update upload-artifact action

* update upload-artifact action

* test another github action for getting changed files

* fix typo

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* revert changes for bandit linter

* remove debug changes

* remove debug changes

* remove debug changes

* remove debug changes

* exit debug mode
3 years ago
Kirill Sizov ce09f28512
Fix SDK tests: login once per class (#5123) 3 years ago
Kirill Sizov ad4635e020
Update Github Actions (#5136)
* update actions/checkout version

* update actions/setup-python version

* update actoins/setup-node version
3 years ago
Kirill Sizov dbcfb30cb2
Fix SDK tests (#5077)
* Update SDK tests to use LoginSerializerEx
3 years ago
Maxim Zhiltsov 426f8e3ef0
Extend SDK layer 1 docs (#5011) 3 years ago
Kirill Sizov 6274bd11b6
workflows: update value of status for `waiting server` step (#5026) 3 years ago
Maria Khrustaleva 56e8c1eb82
Cypress tests for source & target storage (#4914)
* Draft version

* Implemented import & fixed export && some code cleanup && some fixes &&  updated notifications

* Refactoring && fixed several bugs

* Update licence headers && small fixes

* Update remaining licence headers && small changes

* Fix part of tests

* Fix tests

* Remove unused code

* Fix part of comments

* Some fixes

* Move file download process to job

* Rename methods

* Small fix

* Fix storages configuration for tasks

* Styles

* Remove unused

* Change storage configuration && fix forms reset && some fixes

* Update imports

* Remove extra argument type

* Add catch

* Fix import backup from local

* Import architecture refactoring && some fixes

* Rename props

* Small reorganization of export architecture &&  minor fixes

* Remove unused import

* Small fix && skip error notification when no permissions

* Fix project creating

* Fix part of eslint issues

* Fix eslint

* Fix eslint

* Fix eslint

* eslint

* Fix some eslint issues

* Combine uploadAnnotations and importDataset

* Fix annotation uploading from local

* Update tests

* Fix annotation uploading

* Fix notification

* Update dependencies

* fix

* Update jest tests

* Skip error notification when no permissions

* Update case 91 92 canvas3d tests

* Styles

* Update icons

* eslint

* eslint

* eslint

* eslint

* Create & delete cloud storage

* Common part && export job annotations

* Update tests && add tests for project backup

* Fix typo

* Rename variables

* debug

* Revert timeout

* Fix server host

* Fix test with project backup restore

* small refactoring

* Update issue_2473_import_annotations_frames_dots_in_name
3 years ago
Kirill Sizov 26c0a6509a
Workflows: fix typo (#4939)
Co-authored-by: kirill-sizov <kirill.sizov@intel.com>
3 years ago
Kirill Sizov 860b0d96a6
Update workflow configs (#4930) 3 years ago
Nikita Manovich 3957892954
Fix workflows after cvat container was renamed (#4848) 3 years ago
kirill-sizov 2813503858 fix container name 4 years ago
Andrey Zhavoronkov 5e2eda7601
Extend helm to support Serverless functions and Analytics (#110) 4 years ago
Maxim Zhiltsov 5f58a0f7be
Add 2nd layer of SDK (#19) 4 years ago
Kirill Sizov 6dd662b8e7
Hotfix for publishing dev versions of DockerHub images (#80)
Rename dockerhub workspace
4 years ago
Kirill Sizov 67eca0669e
Publishing dev version of docker images (#53) 4 years ago
Kirill Sizov 68dde340ad
Use artifacts instead of dockerhub (#44) 4 years ago
Kirill Sizov 3d3903c01f
Rename Docker images (#12) 4 years ago
Kirill Sizov b751aa1210
Update tokens for workflows (#9)
* update tokens for workflows

* rename ci images
4 years ago
Maxim Zhiltsov 7b2fc54e20
Add CVAT SDK package (#7) 4 years ago
Kirill Sizov 2240b3f4aa
Replace npm with yarn (#113)
* package.json: private true

* delete package-lock.json

* cvat-core/package.json: fix path for cvat-data

* replace npm with yarn

* replace npm with yarn

* add yarn.lock files

* replace npm with yarn

* remark: replace npm with yarn

* fixes

* fixes

* alligment

* workflows: replace npm with yarn

* revert husky version

* replace npm with yarn on ci image

* add yarn for ci image

* enable debug mode for main workflow

* debug mode

* v0.0.0

* resolve dependencies issues

* update docs

* exit debug mode

* add yarn.lock to the ui image

* fix three version

* resolve conflicts

* [no ci] use yarn instead of npm

* fix src path
4 years ago
Kirill Sizov 388237720a
CI-nightly: run E2E test in separate job (#92) 4 years ago
Kirill Sizov cf1f6faed9
CI hotfix (#88) 4 years ago
Kirill Sizov c77e23b7de
CI: sharing docker images between jobs (#85) 4 years ago
Kirill Sizov 2db5bcf7b0
CI: refactor cache, add coverage for CI-nightly (#79) 4 years ago
Kirill Sizov e33d97ec9d
Change last CI-nightly workflow run date (#78) 4 years ago
Kirill Sizov ca8150e21c
Hotfix for CI-nightly (#74) 4 years ago
Kirill Sizov 2e161b0e9f
Refactor CI (#26) 4 years ago
Maxim Zhiltsov fd4a1307b5
CLI package (#59) 4 years ago
Boris Sekachev f960da9117
Added ability to delete frames (#10)
Co-authored-by: Dmitry Kalinin <dmitry.kalinin@intel.com>
Co-authored-by: Nikita Manovich <nikita.manovich@gmail.com>
Co-authored-by: Boris Sekachev <b.sekachev@yandex.ru>
4 years ago
Kirill Sizov 561f4e299d
Reduce number of test cases (#24) 4 years ago
Kirill Sizov 391370e99e
Fix sending requests on CI (#22)
* Fix getting SHA

* add auth token for all necessary requests
4 years ago
Maria Khrustaleva 2a05316496
Add REST API GET, POST, PATCH tests for cloud storage (#4353)
Co-authored-by: kirill.sizov <kirill.sizov@intel.com>
4 years ago
Andrey Zhavoronkov 3c8922ec78
Added simple test for analytics availability (#4308)
Co-authored-by: kirill-sizov <kirill.sizov@intel.com>
4 years ago
Maria Khrustaleva 83126c7b5a
API versioning using accept header (#4239) 4 years ago
Kirill Sizov 6c96891fc4
REST API tests for IAM (#4090) 4 years ago
Dmitry Kruchinin e212d57136
Cypress. New organization pipeline. (#4143)
* The folder renamed

* Add classes

* Rename the folder

* Rename/rework the script for remoing users, tasts, projects,
organizations

* Added commands for organizations

* Fix eslint issues

* Fix workflow

* Move the test to the registration_involved folder

* Added class

* Update the test. Added some commands.

* Added class

* Add a command. Updated the test.

* Fix eslint issue

* Added some classes

* Added cypress command. Update corespinding test.

* Continue writin the test. Update commands.

* Continue writing the test

* Update main.yml

* Add className

* Update the test. Add command

* Update the test

* Added command for remove a tasks, users, progects, orgs

* Some reworks

* Add a class

* Update the test

* Added check issue 4096

* Update year

* Update years

* Update the stept in the test

* Rework command to remove users, etc.

* The tests adaptation

* Rework command to deleting users, etc.

* Apply comments

* Revert changes except base_actions_project test

* Rename the command to delete a task by api

* Apply commenst. Split tests

* Update the command, the test.

* Added steps to check

* Fix support/index.js

* The test adaptation.

* Removed comments.

Co-authored-by: dvkruchinin <dvkruchinin@gmail.com>
4 years ago
Dmitry Kruchinin e17d791968
Cypress. Update test case_4. (#4089)
* Added removing tasks, users, projects.

* Update the case_4, function for deleting a task.

* Fix command

* Apply comments

Co-authored-by: dvkruchinin <dvkruchinin@gmail.com>
4 years ago