1

I am wondering if there is a way to authenticate with already existing token instead of getting the token again...

.credentials(username, credential) <-- this is what I am trying to avoid but instead doing something like

.token(token) <- but this method doesn't exist for the ContextBuilder class

Andrew Gaul
  • 2,296
  • 1
  • 12
  • 19

1 Answers1

2

Can you use ContextBuilder.credentialsSupplier with a custom Supplier, similar to the following:

Using AWS (S3) via jclouds - how to assume role

Community
  • 1
  • 1
Andrew Gaul
  • 2,296
  • 1
  • 12
  • 19