Skip to content

Conversation

@dervism
Copy link

@dervism dervism commented Jun 30, 2025

Added support for OAuth2 Client Credentials Flow. See new OpenSkyAuthentication.java. Adds a new constructor to OpenSkyApi:

OpenSkyApi api = new OpenSkyApi(new OpenSkyAuthentication("clientId", "clientSecret"));
    OpenSkyStates os = api.getStates(0, null,
            new OpenSkyApi.BoundingBox(45.8389, 47.8229, 5.9962, 10.5226));

    os.getStates().forEach(System.out::println);

Additional changes:

  • Upgraded all build dependencies
  • Upgraded tests to JUnit Jupiter
  • Updated deprecated method dc.mappingException(...) to JsonMappingExpception
  • Bumps the Java release version to 17
  • Bumps the library version to 1.4.0

dervism added 4 commits June 30, 2025 03:20
…ent credentials.

- Enhance `OpenSkyApi` with bearer token-based authentication support and support for clientId and clientSecret.
- Update `OpenSkyStatesDeserializer` for improved error handling and replace deprecated method calls.
- Migrate tests from JUnit4 to JUnit5 with structural changes and assertions.
- Upgrade dependencies (e.g., OkHttp, Jackson, and JUnit Jupiter) and Maven plugin versions.
- Bump Java compatibility to version 17.
…nd centralize clientId/clientSecret handling for improved OAuth token management. Update `OpenSkyApi` to use `OpenSkyAuthentication`. Deprecate old username/password-based constructor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant