-
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.
Added Connection's SCIM Server Support
- Loading branch information
Showing
21 changed files
with
1,363 additions
and
6 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
66 changes: 66 additions & 0 deletions
66
src/main/java/com/auth0/json/mgmt/connections/Mapping.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,66 @@ | ||
package com.auth0.json.mgmt.connections; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class Mapping { | ||
@JsonProperty("auth0") | ||
private String auth0; | ||
@JsonProperty("scim") | ||
private String scim; | ||
|
||
/** | ||
* Creates a new instance. | ||
*/ | ||
@JsonCreator | ||
public Mapping() { | ||
|
||
} | ||
|
||
/** | ||
* Creates a new instance with the given Auth0 and SCIM attributes. | ||
* @param auth0 the Auth0 attribute. | ||
* @param scim the SCIM attribute. | ||
*/ | ||
@JsonCreator | ||
public Mapping(@JsonProperty("auth0") String auth0, @JsonProperty("scim") String scim) { | ||
this.auth0 = auth0; | ||
this.scim = scim; | ||
} | ||
|
||
/** | ||
* Getter for the Auth0 attribute. | ||
* @return the Auth0 attribute. | ||
*/ | ||
public String getAuth0() { | ||
return auth0; | ||
} | ||
|
||
/** | ||
* Setter for the Auth0 attribute. | ||
* @param auth0 the Auth0 attribute to set. | ||
*/ | ||
public void setAuth0(String auth0) { | ||
this.auth0 = auth0; | ||
} | ||
|
||
/** | ||
* Getter for the SCIM attribute. | ||
* @return the SCIM attribute. | ||
*/ | ||
public String getScim() { | ||
return scim; | ||
} | ||
|
||
/** | ||
* Setter for the SCIM attribute. | ||
* @param scim the SCIM attribute to set. | ||
*/ | ||
public void setScim(String scim) { | ||
this.scim = scim; | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
src/main/java/com/auth0/json/mgmt/connections/ScimConfigurationRequest.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,65 @@ | ||
package com.auth0.json.mgmt.connections; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class ScimConfigurationRequest { | ||
@JsonProperty("user_id_attribute") | ||
private String userIdAttribute; | ||
@JsonProperty("mapping") | ||
private List<Mapping> mapping; | ||
|
||
/** | ||
* Creates a new instance. | ||
*/ | ||
public ScimConfigurationRequest() { | ||
|
||
} | ||
|
||
/** | ||
* Creates a new instance with the given user id attribute and mapping. | ||
* @param userIdAttribute the user id attribute. | ||
* @param mapping the mappings. | ||
*/ | ||
public ScimConfigurationRequest(String userIdAttribute, List<Mapping> mapping) { | ||
this.userIdAttribute = userIdAttribute; | ||
this.mapping = mapping; | ||
} | ||
|
||
/** | ||
* Getter for the user id attribute. | ||
* @return the user id attribute. | ||
*/ | ||
public String getUserIdAttribute() { | ||
return userIdAttribute; | ||
} | ||
|
||
/** | ||
* Setter for the user id attribute. | ||
* @param userIdAttribute the user id attribute to set. | ||
*/ | ||
public void setUserIdAttribute(String userIdAttribute) { | ||
this.userIdAttribute = userIdAttribute; | ||
} | ||
|
||
/** | ||
* Getter for the mapping. | ||
* @return the mapping. | ||
*/ | ||
public List<Mapping> getMapping() { | ||
return mapping; | ||
} | ||
|
||
/** | ||
* Setter for the mapping. | ||
* @param mapping the mapping to set. | ||
*/ | ||
public void setMapping(List<Mapping> mapping) { | ||
this.mapping = mapping; | ||
} | ||
} |
Oops, something went wrong.