oauth4webapi

OAuth 2 / OpenID Connect for JavaScript Runtimes

MIT License

Downloads
2.2M
Stars
509
Committers
4

Bot releases are hidden (Show)

oauth4webapi -

Published by panva over 2 years ago

Features

  • allow AbortSignal-returning function as well as an instance (90d21b8)
oauth4webapi -

Published by panva over 2 years ago

Fixes

  • allow zero-length scope in token endpoint responses (#15) (d54c821)
oauth4webapi -

Published by panva over 2 years ago

Fixes

  • do not set a user-agent in CORS-enabled runtimes (8899a6b), closes #13
oauth4webapi -

Published by panva over 2 years ago

Fixes

  • skip recalculating dpop_jkt in PAR if already set (9499ccd)
oauth4webapi -

Published by panva over 2 years ago

This release contains only code refactoring and documentation updates.

oauth4webapi -

Published by panva over 2 years ago

Fixes

  • reject unsupported token_type values (3d2cc0c)
oauth4webapi -

Published by panva over 2 years ago

This software is a collection of routines upon which framework-specific client modules may be written. Its objective is to support and, where possible, enforce secure and current best practices using only capabilities common to Browser and Non-Browser JavaScript-based runtime environments.

Target profiles of this software are OAuth 2.1, OAuth 2.0 complemented by the latest Security BCP, and FAPI 2.0. Where applicable Open ID Connect is also supported.

In Scope & Implemented

  • Authorization Server Metadata discovery
  • Authorization Code Flow (profiled under OpenID Connect 1.0, OAuth 2.0, OAuth 2.1, and FAPI 2.0), PKCE
  • Refresh Token, Device Authorization, and Client Credentials Grants
  • Demonstrating Proof-of-Possession at the Application Layer (DPoP)
  • Token Introspection and Revocation
  • Pushed Authorization Requests (PAR)
  • UserInfo and Protected Resource Requests
  • Authorization Server Issuer Identification
  • JWT Secured Introspection, Response Mode, Authorization Request, and UserInfo

Out of scope

  • CommonJS
  • Implicit, Hybrid, and Resource Owner Password Credentials Flows
  • Mutual-TLS Client Authentication and Certificate-Bound Access Tokens
  • JSON Web Encryption (JWE)
  • JSON Web Signature (JWS) rarely used algorithms and HMAC
  • Automatic polyfills of any kind