Skip to content

Elysia OpenID Client

OpenID Connect client (RP, Relying Party) plugin for ElysiaJS, wrapping openid-client.

Specifications and limitations

  • All authentication/authorization information is stored on the server side.
    • The status is passed to routing using the resolve hook.
  • Use Cookie to identify users.
  • Depends on Bun.
  • Only TypeScript files included.
  • Only works as ESM.
  • Only Authorization Code Flow is supported.
  • Only Confidential Client is supported.
  • Client metadata:
    • client_secret is required
    • response_types is fixed to ["code"]
  • Authorization parameters:
    • response_type is fixed to code
    • response_mode must set to query or not set
    • code_challenge , state and nonce are generated automatically
    • code_challenge_method is fixed to S256
    • openid is automatically added to scope