This PR replaces the service_token by the user token, aka platform token. The internal JSON interface is mainly kept except that the serviceTokenEndpoint has been removed.
Following other changes:
changed token refresh interval
tokens for integrated config from internal teh CPD are not refreshed at all (lifetime ~ 10 years)
tokens for integrated conig, external access are refreshed after 11 hours (lifetime ~ 12 hours)
For the ICP4DAuthenticator.java, a token refresh logic has been added
For the ICP4DServiceImpl.java (jobs + spaces API), the ICP4DUserAuthenticator has been replaced by the ICP4DAuthenticator; the ICP4DUserAuthenticator.java has been deleted from the project.
Note: The major version has NOT yet been bumped to 2 as required by the change
Resolves #2609
This PR replaces the service_token by the user token, aka platform token. The internal JSON interface is mainly kept except that the serviceTokenEndpoint has been removed. Following other changes:
ICP4DAuthenticator.java
, a token refresh logic has been addedICP4DServiceImpl.java
(jobs + spaces API), theICP4DUserAuthenticator
has been replaced by theICP4DAuthenticator
; theICP4DUserAuthenticator.java
has been deleted from the project.Note: The major version has NOT yet been bumped to 2 as required by the change