Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Used to parse http Authentication headers, and to call handlers per scheme.
Provides
This class does the parsing and dispatches to handler methods per scheme.
add_handler(scheme, user_record_fn, challenge_fn=None, **kwargs)
get_user_record()
calls after parsing the Authorization header.
get_user_record()
merely passes what is returned back to your application.get_challenge_header()
will call this function while building the WWW-Authenticate
header.
get_challenge_header()
.WWW-Authenticate: Digest nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093", realm="pointw.com", opaque="5ccc069c403ebaf9f0171e9517f40e41"
clear_handlers()
get_user_record(auth_header)
Authorization:
keyword).get_challenge_header(**kwargs)
multi_line=True
to have this method return an array of headers, one item in the array per scheme/handler.challenge_fn
for it to use as it sees fit. For example, if the request had an Authorization:
header that had bad credentials, you could pass that fact to the get_challenge_header()
so it can add details to the challenge header params. e.g. WWW-Authenticate: Bearer error="invalid_token"
FAQs
Used to parse http Authentication headers, and to call handlers per scheme.
We found that authparser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.