Skip to content

Access Token Via OAuth client credentials flow#72

Open
jason-alaya-sf wants to merge 5 commits into
forcedotcom:mainfrom
jason-alaya-sf:jalaya/OAuth-client-credentialsFlow
Open

Access Token Via OAuth client credentials flow#72
jason-alaya-sf wants to merge 5 commits into
forcedotcom:mainfrom
jason-alaya-sf:jalaya/OAuth-client-credentialsFlow

Conversation

@jason-alaya-sf

@jason-alaya-sf jason-alaya-sf commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Adds OAuth2 client-credentials authentication to the Java examples, configured via
CONSUMER_KEY/CONSUMER_SECRET/TENANT_ID. The Subscribe example periodically mints a fresh
access token (orgJWT) and sends it over the stream in FetchRequest.auth_refresh to keep
long-lived subscriptions authenticated

Comment thread pubsub_api.proto
* Salesforce Pub/Sub API Version 1.
*/

syntax = "proto3";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we change the formatting of this entire file per some standard?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main change is Removing the comment // For internal Salesforce use only from the auth_refresh fields in FetchRequest, PublishRequest, and ManagedFetchRequest.

Bump Java 11->17, grpc 1.64.0->1.79.0, protoc 3.25.3->3.25.8,
protoc-gen-grpc-java 1.64.0->1.79.0, and protobuf-maven-plugin
0.5.0->0.6.1 to align with EventBusAPI/pom.xml.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants