🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@panva/oauth4webapi

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@panva/oauth4webapi

OAuth 2 / OpenID Connect Client for Web API runtimes

Source
npmnpm
Version
0.7.0
Version published
Weekly downloads
1.8K
8.96%
Maintainers
1
Weekly downloads
 
Created
Source

OAuth 2 / OpenID Connect Client for Web APIs runtime

This is a collection of bits and pieces upon which a more streamlined Client module may be written.

In Scope & Implemented

  • Authorization Server Metadata discovery
  • OpenID Connect 1.0 and OAuth 2.0 Authorization Code Flow
  • PKCE
  • Refresh Token Grant
  • Device Authorization Grant
  • Client Credentials Grant
  • Demonstrating Proof-of-Possession at the Application Layer (DPoP)
  • Token Introspection
  • JWT Token Introspection
  • Token Revocation
  • JWT Secured Authorization Response Mode (JARM)
  • Confidential and Public Client
  • JWT-Secured Authorization Request (JAR)
  • Pushed Authorization Requests (PAR)
  • UserInfo Requests (Bearer and DPoP)
  • JWT UserInfo Responses
  • Protected Resource Requests (Bearer and DPoP)
  • Authorization Server Issuer Identification

Dependencies: 0

Documentation

Examples

example ESM import

import * as oauth2 from '@panva/oauth4webapi'

example Deno import

import * as oauth2 from 'https://deno.land/x/doauth/src/index.ts'

Runtime requirements

The supported javascript runtimes include ones that

Other than browsers the supported runtimes are

  • Deno (^1.21.0)
  • Cloudflare Workers
  • Vercel Edge Functions
  • Next.js Middlewares
  • Electron (renderer process)

Pending runtime support

Out of scope

  • CommonJS
  • OAuth 2.0 & OpenID Connect Implicit Flows
  • OAuth 2.0 Resource Owner Password Credentials
  • OpenID Connect Hybrid Flows
  • MTLS (because fetch does not support client certificates)
  • JWS HMAC Signed Responses
  • JWE Encrypted Messages

FAQs

Package last updated on 05 May 2022

Did you know?

Socket

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.

Install

Related posts