ballerina/oauth2 Ballerina library

2.15.1

Overview

This module provides a framework for interacting with OAuth2 authorization servers as specified in RFC 6749 and RFC 7662, enabling third-party applications to obtain limited access to HTTP services, and defines auth providers for clients and listeners of different protocol connectors.

Key Features

  • Listener and Client OAuth2 providers
  • Token introspection support, per RFC 7662

Listener OAuth2 provider

Represents the listener OAuth2 provider, which is used to validate the received credential (access token) by calling the configured OAuth2 introspection endpoint.

Client OAuth2 provider

Represents the client OAuth2 provider, which is used to generate OAuth2 access tokens using the configured OAuth2 token endpoint configurations. This supports the client credentials grant type, password grant type, and refresh token grant type.

Import

import ballerina/oauth2;Copy

Other versions

See more...

Metadata

Released date: 6 days ago

Version: 2.15.1

License: Apache-2.0


Compatibility

Platform: java21

Ballerina version: 2201.13.0

GraalVM compatible: Yes


Pull count

Total: 879319

Current verison: 2877


Weekly downloads


Source repository


Keywords

security

authorization

introspection

Type/Library

Area/Built-in

Area/Security & Identity

Name/OAuth2


Contributors