Hi,

I am trying to build a Java web application based on user authentication. I 
have used the below code.

UserAuthorizer userAuthorizer = UserAuthorizer.newBuilder()
          .setClientId(
              ClientId.of(clientId, clientSecretKey))
          .setScopes(Arrays.asList(scope)).setTokenStore(new 
MemoryTokensStorage())
          //.setAccessType("offline")
          .setCallbackUri(URI.create(callbackUrl)).build();

But the user is asked to authenticate every time this logic is called. I 
assume, setting the access type to "offline" would not ask the user to 
login every time, until the access token is expired. But I am unable to 
find such an attribute in this. Please let me know how this can be resolved.

Regards,
Suchitra

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0ee135e7-3a2f-4cc1-a5fa-a1c42c7944a7n%40googlegroups.com.
  • How to authe... 'Suchitra Theruvath' via AdWords API and Google Ads API Forum

Reply via email to