-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SDK-4736] support backchannel logout property on Client (#587)
- Loading branch information
1 parent
2f82901
commit 5557e1c
Showing
3 changed files
with
60 additions
and
1 deletion.
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
36 changes: 36 additions & 0 deletions
36
src/main/java/com/auth0/json/mgmt/client/OIDCBackchannelLogout.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,36 @@ | ||
package com.auth0.json.mgmt.client; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Represents the value of the {@code oidc_backchannel_logout} property on an Auth0 application.\ | ||
* @see Client | ||
* @see com.auth0.client.mgmt.ClientsEntity | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class OIDCBackchannelLogout { | ||
|
||
@JsonProperty("backchannel_logout_urls") | ||
private List<String> backchannelLogoutUrls; | ||
|
||
/** | ||
* Create a new instance with the given list of Logout URIs that will receive a {@code logout_token} when selected Back-Channel Logout Initiators occur. | ||
* @param backchannelLogoutUrls the list of allowed backchannel logout URLs. | ||
*/ | ||
public OIDCBackchannelLogout(@JsonProperty("backchannel_logout_urls") List<String> backchannelLogoutUrls) { | ||
this.backchannelLogoutUrls = backchannelLogoutUrls; | ||
} | ||
|
||
/** | ||
* @return the list of Logout URIs that will receive a {@code logout_token} when selected Back-Channel Logout Initiators occur. | ||
*/ | ||
public List<String> getBackchannelLogoutUrls() { | ||
return this.backchannelLogoutUrls; | ||
} | ||
} |
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