Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation uses deprecated API #689

Open
jakub-bochenski opened this issue Oct 1, 2024 · 0 comments
Open

Documentation uses deprecated API #689

jakub-bochenski opened this issue Oct 1, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@jakub-bochenski
Copy link

E.g.

OAuth2Options credentials = new OAuth2Options()
  .setFlow(OAuth2FlowType.CLIENT)
  .setClientId("<client-id>")
  .setClientSecret("<client-secret>")
  .setSite("https://api.oauth.com");


// Initialize the OAuth2 Library
OAuth2Auth oauth2 = OAuth2Auth.create(vertx, credentials);

JsonObject tokenConfig = new JsonObject();

oauth2.authenticate(tokenConfig)
  .onSuccess(user -> {
    // Success
  })
  .onFailure(err -> {
    System.err.println("Access Token Error: " + err.getMessage());
  });

https://vertx.io/docs/vertx-auth-oauth2/java/#_client_credentials_flow

.setFlow(OAuth2FlowType.CLIENT) and oauth2.authenticate(tokenConfig) taking JsonObject are both deprecated

@tsegismont tsegismont self-assigned this Oct 10, 2024
@tsegismont tsegismont added this to the 4.5.11 milestone Oct 10, 2024
@vietj vietj modified the milestones: 4.5.11, 4.5.12 Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants