Skip to content

Commit 094b02d

Browse files
committed
doc: mirror readme and html now builds again
1 parent 8a65969 commit 094b02d

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# import os
1414
# import sys
1515
# sys.path.insert(0, os.path.abspath('.'))
16-
16+
from typing import List
1717

1818
# -- Project information -----------------------------------------------------
1919

@@ -51,4 +51,4 @@
5151
# Add any paths that contain custom static files (such as style sheets) here,
5252
# relative to this directory. They are copied after the builtin static files,
5353
# so a file named "default.css" will overwrite the builtin "default.css".
54-
html_static_path = ["_static"]
54+
html_static_path: List[str] = []

docs/index.rst

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
Welcome to fastapi-oidc's documentation!
22
========================================
33

4-
Verify ID Tokens Issued by Third Party
4+
Verify and decrypt 3rd party OpenID Connect tokens to protect your
5+
`FastAPI <https://github.com/tiangolo/fastapi>`_ endpoints.
56

6-
This is great if you just want to use something like Okta or google to handle
7-
your auth. All you need to do is verify the token and then you can extract
8-
user ID info from it.
7+
Easily used with authenticators such as:
8+
9+
- `Keycloak <https://www.keycloak.org/>`_ (open source)
10+
- `SuperTokens <https://supertokens.io/>`_ (open source)
11+
- `Auth0 <https://auth0.com/>`_
12+
- `Okta <https://www.okta.com/products/authentication/>`_
13+
14+
15+
FastAPI's generated interactive documentation supports the grant flows
16+
``authorization_code``, ``implicit``, ``password`` and ``client_credentials``.
917

1018
.. toctree::
1119
:maxdepth: 2

fastapi_oidc/auth.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Module for validating OIDC ID Tokens. Configured via config.py
3+
Module for validating Open ID Connect ID Tokens.
44
55
Usage
66
=====
77
88
.. code-block:: python3
99
1010
# This assumes you've already configured get_auth in your_app.py
11-
from you_app.auth import authenticate_user
11+
from your_app.auth import authenticate_user
1212
1313
@app.get("/auth")
1414
def test_auth(authenticated_user: AuthenticatedUser = Depends(authenticate_user)):
@@ -37,16 +37,15 @@ def get_auth(
3737
audience: Optional[str] = None,
3838
signature_cache_ttl: int = 3600,
3939
) -> Callable[[str], Dict]:
40-
"""Take configurations and return the authenticate_user function.
40+
"""Take configurations and returns the :func:`authenticate_user` function.
4141
4242
This function should only be invoked once at the beggining of your
4343
server code. The function it returns should be used to check user credentials.
4444
4545
Args:
4646
openid_connect_url (URL): URL to the "well known" openid connect config
4747
e.g. https://dev-123456.okta.com/.well-known/openid-configuration
48-
issuer (URL): Same as base_authorization. This is used to generating OpenAPI3.0
49-
docs which is broken (in OpenAPI/FastAPI) right now.
48+
issuer (URL): (Optional) The issuer URL from your auth server.
5049
audience (str): (Optional) The audience string configured by your auth server.
5150
signature_cache_ttl (int): How many seconds your app should cache the
5251
authorization server's public signatures.

0 commit comments

Comments
 (0)