Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ public class ApiClient {
{{#hasOAuthMethods}}
/**
* Helper method to configure the client credentials for Oauth
* @param username Username
* @param password Password
* @param clientId Client ID
* @param clientSecret Client secret
*/
public void setClientCredentials(String clientId, String clientSecret) {
OauthClientCredentialsGrant authorization = getAuthorization(OauthClientCredentialsGrant.class);
Expand All @@ -286,6 +286,8 @@ public class ApiClient {
* Helper method to configure the username/password for Oauth password grant
* @param username Username
* @param password Password
* @param clientId Client ID
* @param clientSecret Client secret
*/
public void setOauthPassword(String username, String password, String clientId, String clientSecret) {
OauthPasswordGrant apiAuthorization = getAuthorization(OauthPasswordGrant.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ public void setCredentials(String username, String password) {

/**
* Helper method to configure the client credentials for Oauth
* @param username Username
* @param password Password
* @param clientId Client ID
* @param clientSecret Client secret
*/
public void setClientCredentials(String clientId, String clientSecret) {
OauthClientCredentialsGrant authorization = getAuthorization(OauthClientCredentialsGrant.class);
Expand All @@ -242,6 +242,8 @@ public void setClientCredentials(String clientId, String clientSecret) {
* Helper method to configure the username/password for Oauth password grant
* @param username Username
* @param password Password
* @param clientId Client ID
* @param clientSecret Client secret
*/
public void setOauthPassword(String username, String password, String clientId, String clientSecret) {
OauthPasswordGrant apiAuthorization = getAuthorization(OauthPasswordGrant.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ public void setCredentials(String username, String password) {

/**
* Helper method to configure the client credentials for Oauth
* @param username Username
* @param password Password
* @param clientId Client ID
* @param clientSecret Client secret
*/
public void setClientCredentials(String clientId, String clientSecret) {
OauthClientCredentialsGrant authorization = getAuthorization(OauthClientCredentialsGrant.class);
Expand All @@ -249,6 +249,8 @@ public void setClientCredentials(String clientId, String clientSecret) {
* Helper method to configure the username/password for Oauth password grant
* @param username Username
* @param password Password
* @param clientId Client ID
* @param clientSecret Client secret
*/
public void setOauthPassword(String username, String password, String clientId, String clientSecret) {
OauthPasswordGrant apiAuthorization = getAuthorization(OauthPasswordGrant.class);
Expand Down