Interface AppAuthSession

All Known Implementing Classes:
AppAuthSessionCertImpl, AppAuthSessionRsaImpl

@API(status=STABLE) public interface AppAuthSession
Extension App Authentication session handle. The refresh() will trigger a re-auth against the API endpoints.

You should keep using the same Symphony token. This token will expire at expireAt(), at which you should re-authenticate and get a new Symphony token for a new session.

  • Method Summary

    Modifier and Type
    Method
    Description
    Unix Timestamp in milliseconds of Symphony token expiration
    Extension app authentication token.
    Symphony token for extension app session.
    void
    Trigger re-authentication to refresh tokens.
  • Method Details

    • getSymphonyToken

      @Nullable String getSymphonyToken()
      Symphony token for extension app session.
      Returns:
      Symphony token
    • getAppToken

      @Nullable String getAppToken()
      Extension app authentication token.
      Returns:
      extension app authentication token
    • expireAt

      @Nullable Long expireAt()
      Unix Timestamp in milliseconds of Symphony token expiration
      Returns:
      timestamp of Symphony token expiration
    • refresh

      void refresh() throws AuthUnauthorizedException
      Trigger re-authentication to refresh tokens.
      Throws:
      AuthUnauthorizedException