-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into Add-ReversingLAB-scanner
- Loading branch information
Showing
16 changed files
with
466 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.13.0 | ||
2.14.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/main/java/com/auth0/json/mgmt/client/ClientDefaultOrganization.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package com.auth0.json.mgmt.client; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class ClientDefaultOrganization { | ||
@JsonProperty("flows") | ||
private List<String> flows; | ||
@JsonProperty("organization_id") | ||
private String organizationId; | ||
|
||
public ClientDefaultOrganization() { | ||
|
||
} | ||
|
||
public ClientDefaultOrganization(List<String> flows, String organizationId) { | ||
this.flows = flows; | ||
this.organizationId = organizationId; | ||
} | ||
|
||
/** | ||
* Getter for the supported flows. | ||
* @return the supported flows. | ||
*/ | ||
public List<String> getFlows() { | ||
return flows; | ||
} | ||
|
||
/** | ||
* Setter for the supported flows. | ||
* @param flows the supported flows to set. | ||
*/ | ||
public void setFlows(List<String> flows) { | ||
this.flows = flows; | ||
} | ||
|
||
/** | ||
* Getter for the organization_id. | ||
* @return the organization_id. | ||
*/ | ||
public String getOrganizationId() { | ||
return organizationId; | ||
} | ||
|
||
/** | ||
* Setter for the organization_id. | ||
* @param organizationId the organization_id to set. | ||
*/ | ||
public void setOrganizationId(String organizationId) { | ||
this.organizationId = organizationId; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.auth0.net; | ||
|
||
import com.auth0.client.mgmt.TokenProvider; | ||
import com.auth0.exception.Auth0Exception; | ||
import com.auth0.net.client.Auth0HttpClient; | ||
import com.auth0.net.client.Auth0HttpResponse; | ||
import com.auth0.net.client.HttpMethod; | ||
import com.auth0.net.client.HttpRequestBody; | ||
import com.fasterxml.jackson.core.type.TypeReference; | ||
|
||
/** | ||
* Request class that does not accept parameters to be sent as part of its body and request doesn't return any value on its success. | ||
* The content type of this request is "application/json". | ||
* | ||
* @param <T> The type expected to be received as part of the response. | ||
* @see BaseRequest | ||
*/ | ||
public class EmptyBodyVoidRequest<T> extends BaseRequest<T> { | ||
public EmptyBodyVoidRequest(Auth0HttpClient client, TokenProvider tokenProvider, String url, HttpMethod method, TypeReference<T> tType) { | ||
super(client, tokenProvider, url, method, tType); | ||
} | ||
|
||
@Override | ||
@SuppressWarnings("deprecation") | ||
protected HttpRequestBody createRequestBody() { | ||
return HttpRequestBody.create("application/json", new byte[0]); | ||
} | ||
|
||
@Override | ||
public EmptyBodyVoidRequest<T> addParameter(String name, Object value) { | ||
//do nothing | ||
return this; | ||
} | ||
@Override | ||
protected T parseResponseBody(Auth0HttpResponse response) throws Auth0Exception { | ||
if (!response.isSuccessful()) { | ||
throw super.createResponseException(response); | ||
} | ||
return null; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.