Skip to content

Generalize core auth functionality to work for either Flask or FastAPI applications #8

Open
jeanetteclark wants to merge 43 commits into
developfrom
feature-generalize-api
Open

Generalize core auth functionality to work for either Flask or FastAPI applications #8
jeanetteclark wants to merge 43 commits into
developfrom
feature-generalize-api

Conversation

@jeanetteclark
Copy link
Copy Markdown

@jeanetteclark jeanetteclark commented May 15, 2026

This is largely a (major) code-reorganization project to allow dataone applications (or really any app using an OIDC provider). I started from vegbank.auth and gradually moved the core logic around into a factory-adapter pattern.

All of the auth logic is wrapped up into 7 primary user-facing methods:

load_client_secrets
create_client
login
authorize
refresh
require_scope
require_token

implementation examples are in README.md

@jeanetteclark jeanetteclark marked this pull request as ready for review May 15, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant