analytics-java-library icon indicating copy to clipboard operation
analytics-java-library copied to clipboard

WebServer Grant

Open laiyhman opened this issue 7 years ago • 2 comments

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)

laiyhman avatar Apr 13 '17 02:04 laiyhman

Hello @laiyhman. Thanks for comment. Maybe you can post a draft implementation of such authentication method?

trekawek avatar Oct 18 '17 10:10 trekawek

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.

laiyhman avatar Oct 24 '17 09:10 laiyhman