Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jmagnusson/fastapi-security

Implements authentication and authorization as FastAPI dependencies
https://github.com/jmagnusson/fastapi-security

Last synced: 2 months ago
JSON representation

Implements authentication and authorization as FastAPI dependencies

Awesome Lists containing this project

README

        

# FastAPI Security

[![Continuous Integration Status](https://github.com/jacobsvante/fastapi-security/actions/workflows/ci.yml/badge.svg)](https://github.com/jacobsvante/fastapi-security/actions/workflows/ci.yml)
[![Continuous Delivery Status](https://github.com/jacobsvante/fastapi-security/actions/workflows/cd.yml/badge.svg)](https://github.com/jacobsvante/fastapi-security/actions/workflows/cd.yml)
[![Python Versions](https://img.shields.io/pypi/pyversions/fastapi-security.svg)](https://pypi.org/project/fastapi-security/)
[![Code Coverage](https://img.shields.io/codecov/c/github/jacobsvante/fastapi-security?color=%2334D058)](https://codecov.io/gh/jacobsvante/fastapi-security)
[![PyPI Package](https://img.shields.io/pypi/v/fastapi-security?color=%2334D058&label=pypi%20package)](https://pypi.org/project/fastapi-security)

Add authentication and authorization to your FastAPI app via dependencies.

## Installation

With OAuth2/OIDC support:

```bash
pip install fastapi-security[oauth2]
```

With basic auth only:

```bash
pip install fastapi-security
```

## Documentation

[The documentation for FastAPI-Security is found here](https://jacobsvante.github.io/fastapi-security/).