analytics-java-library
analytics-java-library copied to clipboard
WebServer Grant
Hi,
Can I suggest to add one more authentication method for Webserver Grant?
Currently the API provides: authenticateWithSecret(String username, String secret) authenticateWithJWTOAuth(Path privateKeyPath, String clientId, String username) authenticateWithJWTOAuth(byte[] privateKey, String clientId, String username) authenticateWithClientCredentialsOAuth(String clientId, String secret)
May be something like ? authenticateWithWebServerGrantOAuth(String authorizationCode)
Hello @laiyhman. Thanks for comment. Maybe you can post a draft implementation of such authentication method?
Hi,
I think i meant to type refreshToken instead of authorizationCode, perhaps something like authenticate(String accessToken, String refreshToken), auto refresh if expired. Imagine there's a front end where user go through the consent etc, and store the access token and refresh token, which the backend can later use to run the job.