Skip to content

Add OAuth2 support for the Salesforce Listener #8623

@Nuvindu

Description

@Nuvindu

Area

Area/Connector

Current Limitation

The salesforce listener currently does not support OAuth2 authentication.

Suggested Improvement

To add OAuth2 support, the following changes would be needed:

Listener configuration would be as follows.

public type ListenerConfig record {|                                                                                                                                                                           
      CredentialsConfig|OAuth2Config auth;  // Support both auth methods                                                                                                                                         
      int|ReplayOptions replayFrom = REPLAY_FROM_TIP;                                                                                                                                                            
      boolean isSandBox = false;                                                                                                                                                                                 
  |};
                                                                                                                                                                          
public type OAuth2Config http:BearerTokenConfig|http:OAuth2RefreshTokenGrantConfig|http:OAuth2ClientCredentialsGrantConfig;
  

Version

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions