forked from loafle/openapi-generator-original
java-jersey2 - Always render setBearerToken regardless of whether OAuth2 is in use. (#2479)
This commit is contained in:
parent
94c267ee42
commit
1adc962f2b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user