1- # FastAPI OIDC
1+ # FastAPI Third Party Auth
22
33<p align =" left " >
4- <a href="https://github.com/HarryMWinters /fastapi-oidc /actions?query=workflow%3ATest"
4+ <a href="https://github.com/aiwizo /fastapi-third-party-auth /actions?query=workflow%3ATest"
55 target="_blank">
6- <img src="https://github.com/HarryMWinters /fastapi-oidc /workflows/Test/badge.svg"
6+ <img src="https://github.com/aiwizo /fastapi-third-party-auth /workflows/Test/badge.svg"
77 alt="Test">
88 </a>
9- <a href='https://fastapi-oidc .readthedocs.io/en/latest/?badge=latest'>
10- <img src='https://readthedocs.org/projects/fastapi-oidc /badge/?version=latest' alt='Documentation Status' />
9+ <a href='https://fastapi-third-party-auth .readthedocs.io/en/latest/?badge=latest'>
10+ <img src='https://readthedocs.org/projects/fastapi-third-party-auth /badge/?version=latest' alt='Documentation Status' />
1111 </a>
12- <a href="https://pypi.org/project/fastapi-oidc "
12+ <a href="https://pypi.org/project/fastapi-third-party-auth "
1313 target="_blank">
14- <img src="https://img.shields.io/pypi/v/fastapi-oidc ?color=%2334D058&label=pypi%20package"
14+ <img src="https://img.shields.io/pypi/v/fastapi-third-party-auth ?color=%2334D058&label=pypi%20package"
1515 alt="Package version">
1616 </a>
1717</p >
1818
1919---
2020
21- ** Documentation** : <a href =" https://fastapi-oidc .readthedocs.io/ " target =" _blank " >https://fastapi-oidc .readthedocs.io/ </a >
21+ ** Documentation** : <a href =" https://fastapi-third-party-auth .readthedocs.io/ " target =" _blank " >https://fastapi-third-party-auth .readthedocs.io/ </a >
2222
23- ** Source Code** : <a href =" https://github.com/HarryMWinters /fastapi-oidc " target =" _blank " >https://github.com/HarryMWinters /fastapi-oidc </a >
23+ ** Source Code** : <a href =" https://github.com/aiwizo /fastapi-third-party-auth " target =" _blank " >https://github.com/aiwizo /fastapi-third-party-auth </a >
2424
2525---
2626
27- Verify and decrypt 3rd party OpenID Connect tokens to protect your
28- [ FastAPI] ( https://github.com/tiangolo/fastapi ) endpoints.
27+ Simple library for using a third party authentication service with
28+ [ FastAPI] ( https://github.com/tiangolo/fastapi ) . Verifies and decrypts 3rd party
29+ OpenID Connect tokens to protect your endpoints.
2930
30- Easily used with authenticators such as:
31+ Easily used with authentication services such as:
3132- [ Keycloak] ( https://www.keycloak.org/ ) (open source)
3233- [ SuperTokens] ( https://supertokens.io/ ) (open source)
3334- [ Auth0] ( https://auth0.com/ )
3435- [ Okta] ( https://www.okta.com/products/authentication/ )
3536
36- FastAPI's generated interactive documentation supports the grant flows
37- ` authorization_code ` , ` implicit ` , ` password ` and ` client_credentials ` .
37+ FastAPI's generated interactive documentation supports the grant flows:
38+ ``` python3
39+ GrantType.AUTHORIZATION_CODE
40+ GrantType.IMPLICIT
41+ GrantType.PASSWORD
42+ GrantType.CLIENT_CREDENTIALS
43+ ```
44+
45+ ![ example documentation] ( example-docs.png )
3846
3947## Installation
4048
4149```
42- poetry add fastapi-oidc
50+ poetry add fastapi-third-party-auth
4351```
4452
4553Or, for the old-timers:
4654
4755```
48- pip install fastapi-oidc
56+ pip install fastapi-third-party-auth
4957```
5058
5159## Usage
5260
53- See this example for how to use ` docker-compose ` to set up authentication with
54- fastapi-oidc + keycloak.
61+ See [ this example] ( tree/master/example ) for how to use
62+ ` docker-compose ` to set up authentication with ` fastapi-third-party-auth ` +
63+ [ Keycloak] ( https://www.keycloak.org/ ) .
5564
5665### Standard usage
5766
@@ -61,9 +70,9 @@ from fastapi import FastAPI
6170from fastapi import Security
6271from fastapi import status
6372
64- from fastapi_oidc import Auth
65- from fastapi_oidc import GrantType
66- from fastapi_oidc import KeycloakIDToken
73+ from fastapi_third_party_auth import Auth
74+ from fastapi_third_party_auth import GrantType
75+ from fastapi_third_party_auth import KeycloakIDToken
6776
6877auth = Auth(
6978 openid_connect_url = " http://localhost:8080/auth/realms/my-realm/.well-known/openid-configuration" ,
0 commit comments