Description
oauth4webapi is a low-level client library for OAuth 2 and OpenID Connect that runs in browsers and in other JavaScript runtimes. Instead of a framework plugin, it gives you the building blocks to write your own client: discovery of authorization server and resource server metadata, the authorization code flow with PKCE, refresh tokens, client credentials, device authorization, token introspection and revocation, and pushed authorization requests. It also covers newer profiles such as DPoP sender-constrained tokens, dynamic client registration, JARM and JAR responses, and validation of incoming JWT access tokens. The stated goal is to follow current security best practices for OAuth 2.1, the OAuth 2.0 Security BCP and FAPI 2.0, and the README says the library has been certified against the OpenID Connect FAPI relying party profiles. Because it only uses APIs common to browsers and servers, the same code can run in more than one environment. It is a good fit for teams that need precise control over authentication flows rather than a pre-built login widget.…
Highlights
- Authorization code flow with PKCE and refresh tokens
- Discovery of authorization and resource server metadata
- DPoP, PAR, JAR and JARM support
- Token introspection, revocation and JWT access token checks
- Works in browsers and other JavaScript runtimes
Ratings & Reviews
No ratings yet
Be the first to rate Oauth4webapi.
People also visit
pac4j
Security engine for Java (authentication, authorization, multi frameworks)…
Oauth4webapi FAQ
What is oauth4webapi?
It is a low-level JavaScript library for building OAuth 2 and OpenID Connect clients. It supplies the protocol routines, and your code decides how to store tokens and handle sessions.
Who is it for?
Developers who write their own authentication client and want fine control over OAuth flows. It is not a drop-in login button, so it suits teams comfortable with the protocol.
Which standards does it cover?
The README lists OAuth 2.1, OAuth 2.0 with the Security Best Current Practice, FAPI 2.0 and OpenID Connect, including PKCE, DPoP, pushed authorization requests and dynamic client registration.
Does it run outside the browser?
Yes. It is written to use only APIs common to browsers and non-browser JavaScript runtimes, so it can run in servers and edge runtimes as well as in web pages.
Is it free and open source?
Yes. The source is public on GitHub, and the README asks users who find it useful to support the maintainer through sponsorship.
What are the best Oauth4webapi alternatives?
Popular alternatives to Oauth4webapi include Melody Auth, pac4j and Oidc.Server. See all Oauth4webapi alternatives







