Currently the only way to authenticate is by means of CscClient.authLogin() via /csc/v1/auth/login. But the CSC API also allows for different ways to retrieve access and refresh tokens.
Thus, I'd propose adding an alternative method to inject tokens retrieved via a different channel, e.g. a CscClient.useTokens(String accessToken, String refreshToken) that simply sets the access_token and refresh_token members to the given values.
If some sanity check is desired, either token may be null (for connections without refresh-feature or connections that first of all have to call refreshLogin()) but not both concurrently.
Currently the only way to authenticate is by means of
CscClient.authLogin()
via/csc/v1/auth/login
. But the CSC API also allows for different ways to retrieve access and refresh tokens.Thus, I'd propose adding an alternative method to inject tokens retrieved via a different channel, e.g. a
CscClient.useTokens(String accessToken, String refreshToken)
that simply sets theaccess_token
andrefresh_token
members to the given values.If some sanity check is desired, either token may be
null
(for connections without refresh-feature or connections that first of all have to callrefreshLogin()
) but not both concurrently.