Giter VIP home page Giter VIP logo

auth's Introduction

Auth Service

License: AGPL v3 Python 3.9 GitHub Workflow Status (branch)

Manages user related data as well as authentication and permissions. Connects to Keycloak and optionally AD or OpenLDAP

Getting Started

Prerequisites

This project is using Poetry to handle the dependencies. Installtion instruction for poetry can be found at https://python-poetry.org/docs/#installation

Installation & Quick Start

  1. Clone the project.

    git clone https://github.com/PilotDataPlatform/auth.git
    
  2. Install dependencies.

    poetry install
    
  3. Add environment variables into .env. Use .env.schema as a reference.

  4. Run setup scripts for postgres

  5. Run migration using alembic.

    poetry run alembic upgrade head
    
  6. Run SQL script to populate casbin permissions

  7. Run application.

    poetry run python run.py
    

Startup using Docker

This project can also be started using Docker.

  1. To build and start the service within the Docker container, run:

    docker compose up
    
  2. Migrations should run automatically after the previous step. They can also be manually triggered:

    docker compose run --rm alembic upgrade head
    

Resources

Contribution

You can contribute the project in following ways:

  • Report a bug.
  • Suggest a feature.
  • Open a pull request for fixing issues or adding functionality. Please consider using pre-commit in this case.

auth's People

Contributors

gregmccoy avatar andricdu avatar mnaghavi avatar afmam avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.