java-jersey2 - Always render setBearerToken regardless of whether OAuth2 is in use. (#2479)

This commit is contained in:
davidwcarlson 2019-03-23 03:38:00 -07:00 committed by William Cheng
parent 94c267ee42
commit 1adc962f2b

View File

@ -194,7 +194,6 @@ public class ApiClient {
throw new RuntimeException("No API key authentication configured!"); throw new RuntimeException("No API key authentication configured!");
} }
{{#hasOAuthMethods}}
/** /**
* Helper method to set bearer token for the first Bearer authentication. * Helper method to set bearer token for the first Bearer authentication.
* @param bearerToken Bearer token * @param bearerToken Bearer token
@ -209,6 +208,7 @@ public class ApiClient {
throw new RuntimeException("No Bearer authentication configured!"); throw new RuntimeException("No Bearer authentication configured!");
} }
{{#hasOAuthMethods}}
/** /**
* Helper method to set access token for the first OAuth2 authentication. * Helper method to set access token for the first OAuth2 authentication.
* @param accessToken Access token * @param accessToken Access token