Angelo Gladding
Hacker for right homesteading an independent web.

python-indieauth 0.1.1

utilities for implementing IndieAuth clients and servers
IndieWeb, IndieAuth

Licensed: BSD Zero Clause License

Provides: scripts ( indieauth )

3 tests of 3 failing in 1.973s


Utilities for implementing IndieAuth clients and servers.

webagt, txt

154 LLOC, highly maintainable

canonicalize_user(user_url: str) -> easyuri.URI

Return the canonicalized form of user's URL. For clients.

discover_user(user_url: easyuri.URI, session: dict) -> easyuri.URI

Return the authorization_endpoint for given user_url. For clients.

initiate_signin(client_id: easyuri.URI, redirect_uri: easyuri.URI, user_url: easyuri.URI, scopes: list, session: dict) -> easyuri.URI

Return a URL to initiate sign-in at client_id for user_url. For clients.

discover_client(client_id: easyuri.URI) -> dict

Return details of client found at client_id. For servers.

complete_signin(redirect_uri: easyuri.URI, state, code, iss) -> easyuri.URI

Return redirect_uri with state and code parameters added. For servers.

redeem_code(state: str, code: str, session: dict, flow: str = 'profile') -> dict

Return auth response after redeeming code at endpoint. For clients.

validate_redemption(request: dict, authorization: dict, owner: dict, flow: str = 'profile') -> dict

Return auth response after validating code redemption. For servers.


Package: indieauth

Requires: python >=3.10,<3.11, pycryptodome, txtint, webagt


 git clone

Commit Log


.github/, .gitignore, pyproject.toml