hoauth2

Haskell OAuth2 authentication client

https://github.com/freizl/hoauth2

Version on this page:2.11.0
LTS Haskell 24.24:2.14.3
Stackage Nightly 2025-12-16:2.15.0
Latest on Hackage:2.15.0

See all snapshots hoauth2 appears in

MIT licensed by Haisheng Wu
Maintained by Haisheng Wu
This version can be pinned in stack with:hoauth2-2.11.0@sha256:7c9976a6904a85e88ac6b76ac60315d53468af453ee25cccb2a0a038f5632026,3561

Module documentation for 2.11.0

  • Network
    • Network.OAuth
      • Network.OAuth.OAuth2
        • Network.OAuth.OAuth2.AuthorizationRequest
        • Network.OAuth.OAuth2.HttpClient
        • Network.OAuth.OAuth2.TokenRequest
    • Network.OAuth2
      • Network.OAuth2.Experiment
        • Network.OAuth2.Experiment.Flows
          • Network.OAuth2.Experiment.Flows.AuthorizationRequest
          • Network.OAuth2.Experiment.Flows.DeviceAuthorizationRequest
          • Network.OAuth2.Experiment.Flows.RefreshTokenRequest
          • Network.OAuth2.Experiment.Flows.TokenRequest
          • Network.OAuth2.Experiment.Flows.UserInfoRequest
        • Network.OAuth2.Experiment.Grants
          • Network.OAuth2.Experiment.Grants.AuthorizationCode
          • Network.OAuth2.Experiment.Grants.ClientCredentials
          • Network.OAuth2.Experiment.Grants.DeviceAuthorization
          • Network.OAuth2.Experiment.Grants.JwtBearer
          • Network.OAuth2.Experiment.Grants.ResourceOwnerPassword
        • Network.OAuth2.Experiment.Pkce
        • Network.OAuth2.Experiment.Types
* Introduction

Haskell binding for

- [[https://datatracker.ietf.org/doc/html/rfc6749][The OAuth 2.0 Authorization Framework]]
- If the Identity Provider also implements [[https://openid.net/specs/openid-connect-core-1_0.html][OIDC spec]], ID Token will also be present in token response (see ~OAuth2Token~).
- [[https://www.rfc-editor.org/rfc/rfc7523.html][JWT Profile for OAuth2 Client Authentication and Authorization Grants]]
- [[https://www.rfc-editor.org/rfc/rfc6750][The OAuth 2.0 Authorization Framework: Bearer Token Usage]]