We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bdaea0 commit ea08663Copy full SHA for ea08663
1 file changed
src/webapp/authn.py
@@ -16,6 +16,11 @@
16
17
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
18
19
+oauth2_apikey_scheme = OAuth2PasswordBearer(
20
+ scheme_name="api_key_scheme",
21
+ tokenUrl="token-from-api-key",
22
+)
23
+
24
api_key_header = APIKeyHeader(name="X-API-KEY", scheme_name="api-key", auto_error=False)
25
# The INST value may be empty for Datakinder or cross-institution access.
26
api_key_inst_header = APIKeyHeader(
0 commit comments