{"id":15105330,"url":"https://github.com/phovea/phovea_security_flask","last_synced_at":"2025-09-27T03:30:48.695Z","repository":{"id":36604720,"uuid":"40910887","full_name":"phovea/phovea_security_flask","owner":"phovea","description":"Security manager implementation based on flask-login","archived":true,"fork":false,"pushed_at":"2021-11-30T07:15:09.000Z","size":412,"stargazers_count":0,"open_issues_count":8,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-09-21T12:04:54.591Z","etag":null,"topics":["flask","phovea","phovea-client-plugin","phovea-server-plugin"],"latest_commit_sha":null,"homepage":"http://caleydo.org/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phovea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2015-08-17T16:36:49.000Z","updated_at":"2023-01-28T05:04:08.000Z","dependencies_parsed_at":"2022-09-12T05:50:12.464Z","dependency_job_id":null,"html_url":"https://github.com/phovea/phovea_security_flask","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phovea%2Fphovea_security_flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phovea%2Fphovea_security_flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phovea%2Fphovea_security_flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phovea%2Fphovea_security_flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phovea","download_url":"https://codeload.github.com/phovea/phovea_security_flask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219871861,"owners_count":16554462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","phovea","phovea-client-plugin","phovea-server-plugin"],"created_at":"2024-09-25T20:23:31.957Z","updated_at":"2025-09-27T03:30:43.409Z","avatar_url":"https://github.com/phovea.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"DEPRECATED: phovea_security_flask\n=====================\n[![Phovea][phovea-image-client]][phovea-url] [![Phovea][phovea-image-server]][phovea-url] [![NPM version][npm-image]][npm-url] [![Build Status][circleci-image]][circleci-url]\n\nSecurity manager implementation based on [Flask-Login](https://flask-login.readthedocs.io/en/latest/). Additionally, a login module is provided that can be used at client-side.\n\n### DEPRECATION Information\nPlease note that this project has been archived and is no longer being maintained. There is an active development under https://github.com/datavisyn/tdp_core and we will also contribute our future changes to it.\n\nInstallation\n------------\n\n```\ngit clone https://github.com/phovea/phovea_security_flask.git\ncd phovea_security_flask\nnpm install\n```\n\nTesting\n-------\n\n```\nnpm test\n```\n\nBuilding\n--------\n\n```\nnpm run build\n```\n\nDefault users\n-------\n| Username | Password |\n|----------|----------|\n| admin    | `admin`  |\n| sam      | `sam`    |\n\nAdd new users\n-------\n\n### Config File\nNew users are added to `phovea_security_flask/config.json`.\n\nThe python script `encryptor.py` hashes a given password and prints password, salt, and hashed password.\n\n### Environment Variables\nAlternatively, you can provide users via environment variables:\nThe `UserStore` class in `phovea_security_flask/dummy_store.py` reads all environment variables starting with `PHOVEA_USER_` and uses the remainder of the enviroment variable key as username. The environment variable's key has to contain: `SALT;HASHED_PW;ROLE1` (multiple roles can be added by seperating them with a semicolon), e.g.:\n```\nexport PHOVEA_USER_bruce.banner=\"08c52b567cb947c98be6de6e9ad3919f;2c946ca1b8574d506ee5e7b3b22e350bc8c93b9df647d17e4429e727529c63a62d1fb274ca5a7499bd33c0844e437631728ee9fcba14b41204f21ec8cda523f7;avenger;scientist\n```\n\nDefines the following user:\n* Username: `bruce.banner`\n* Salt: `08c52b567cb947c98be6de6e9ad3919f`\n* Hashed password: `2c946ca1b8574d506ee5e7b3b22e350bc8c93b9df647d17e4429e727529c63a62d1fb274ca5a7499bd33c0844e437631728ee9fcba14b41204f21ec8cda523f7`\n* Roles: `avenger, scientist`\n\n**NOTE:** User credentials defined as environment variables override all users defined in the `config.json`. This behaviour can be used to define development users inside the `config.json`, and provide users for production via environment variables when deployed.\n\n\n***\n\n\u003ca href=\"https://caleydo.org\"\u003e\u003cimg src=\"http://caleydo.org/assets/images/logos/caleydo.svg\" align=\"left\" width=\"200px\" hspace=\"10\" vspace=\"6\"\u003e\u003c/a\u003e\nThis repository is part of **[Phovea](http://phovea.caleydo.org/)**, a platform for developing web-based visualization applications. For tutorials, API docs, and more information about the build and deployment process, see the [documentation page](http://phovea.caleydo.org).\n\n\n[phovea-image-client]: https://img.shields.io/badge/Phovea-Client%20Plugin-F47D20.svg\n[phovea-image-server]: https://img.shields.io/badge/Phovea-Server%20Plugin-10ACDF.svg\n[phovea-url]: https://phovea.caleydo.org\n[npm-image]: https://badge.fury.io/js/phovea_security_flask.svg\n[npm-url]: https://npmjs.org/package/phovea_security_flask\n[circleci-image]: https://circleci.com/gh/phovea/phovea_security_flask.svg?style=shield\n[circleci-url]: https://circleci.com/gh/phovea/phovea_security_flask\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphovea%2Fphovea_security_flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphovea%2Fphovea_security_flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphovea%2Fphovea_security_flask/lists"}