Skip to content

Conversation

@sajith-subramanian
Copy link
Contributor

This pull request updates the authentication SDK and its dependencies, and improves the handling of token expiration in the TwoLeggedToken model. The most important changes are grouped below:

Authentication SDK & Dependency Updates:

  • Bumped the version of the authentication SDK and related dependencies from 0.1.0-beta to 0.1.1-beta in authentication/pom.xml, samples/pom.xml, and sdkmanager/pom.xml. [1] [2] [3] [4]
  • Updated versions of several dependencies in sdkmanager/pom.xml:
    • Upgraded httpcomponents to 5.5.1
    • Upgraded slf4j to 2.0.17
    • Upgraded logback to 1.5.21

Token Expiration Handling Improvements:

  • Changed the expiresAt field in TwoLeggedToken from Integer to Long to better represent epoch seconds, and updated related getter, setter, and builder methods. [1] [2]
  • Modified the logic in setExpiresIn to automatically set expiresAt based on the current time and the expiresIn value using Instant.now().getEpochSecond().
  • Updated sample code in AuthenticationSample.java to correctly convert and display the expiresAt value as a local date/time using Instant.ofEpochSecond.

Minor Code Cleanups:

  • Removed an unnecessary blank line in AuthenticationSample.java.
  • Added missing import for java.time.Instant in TwoLeggedToken.java.

sajith-subramanian and others added 9 commits November 20, 2025 09:58
Keep Main branch updated with Development
Snyk has created this PR to upgrade ch.qos.logback:logback-classic from 1.4.12 to 1.5.21.

See this package in maven:
ch.qos.logback:logback-classic

See this project in Snyk:
https://app.snyk.io/org/aps-sdk/project/3b347854-1989-481d-8760-53afcb6147d0?utm_source=github&utm_medium=referral&page=upgrade-pr
Snyk has created this PR to upgrade org.slf4j:slf4j-api from 2.0.9 to 2.0.17.

See this package in maven:
org.slf4j:slf4j-api

See this project in Snyk:
https://app.snyk.io/org/aps-sdk/project/3b347854-1989-481d-8760-53afcb6147d0?utm_source=github&utm_medium=referral&page=upgrade-pr
…o 5.5.1

Snyk has created this PR to upgrade org.apache.httpcomponents.client5:httpclient5 from 5.5 to 5.5.1.

See this package in maven:
org.apache.httpcomponents.client5:httpclient5

See this project in Snyk:
https://app.snyk.io/org/aps-sdk/project/3b347854-1989-481d-8760-53afcb6147d0?utm_source=github&utm_medium=referral&page=upgrade-pr
…5440754fdcc61d38bda47c8707fd111

[Snyk] Upgrade ch.qos.logback:logback-classic from 1.4.12 to 1.5.21
…20bdef401a7ee1c0553754c154e1a77

[Snyk] Upgrade org.slf4j:slf4j-api from 2.0.9 to 2.0.17
…01131aa9537075ea04465e7e056f405

[Snyk] Upgrade org.apache.httpcomponents.client5:httpclient5 from 5.5 to 5.5.1
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request addresses authentication token expiration handling and updates SDK dependencies to version 0.1.1-beta. The key changes include fixing the token expiration calculation by using proper epoch seconds representation and upgrading several core dependencies.

  • Changed expiresAt field type from Integer to Long to properly handle epoch seconds timestamps
  • Implemented automatic expiresAt calculation in setExpiresIn method based on current time
  • Updated authentication SDK and sdkmanager dependencies from 0.1.0-beta to 0.1.1-beta with upgraded httpcomponents, slf4j, and logback versions

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
authentication/pom.xml Bumped authentication SDK version to 0.1.1-beta and updated sdkmanager dependency
authentication/src/main/java/com/autodesk/aps/authentication/model/TwoLeggedToken.java Changed expiresAt from Integer to Long and added auto-calculation logic in setExpiresIn
samples/pom.xml Updated authentication SDK dependency version to 0.1.1-beta
samples/src/main/java/com/autodesk/aps/samples/AuthenticationSample.java Fixed token expiration display to use expiresAt with epoch seconds conversion
sdkmanager/pom.xml Bumped version to 0.1.1-beta and upgraded httpcomponents, slf4j, and logback dependencies

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@autodesk-platform-services autodesk-platform-services deleted a comment from Copilot AI Jan 9, 2026
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.

3 participants