Skip to content
This repository has been archived by the owner on Jun 10, 2019. It is now read-only.

Commit

Permalink
[PLINK-233] - SP should read/recognize the SingleLogoutLocation Respo…
Browse files Browse the repository at this point in the history
…nseLocation attribute in the metadata.
  • Loading branch information
Pedro Igor committed Aug 9, 2013
1 parent 5cf1558 commit 858c477
Show file tree
Hide file tree
Showing 5 changed files with 132 additions and 63 deletions.
Expand Up @@ -51,11 +51,11 @@

/**
* @author <a href="mailto:psilva@redhat.com">Pedro Silva</a>
*
*
*/

/**
* @author <a href="mailto:psilva@redhat.com">Pedro Silva</a>
*
*/
public class DefaultPicketLinkLogger implements PicketLinkLogger {

Expand Down Expand Up @@ -2280,12 +2280,12 @@ public IllegalArgumentException samlMetaDataFailedToCreateCacheDuration(String t
return new IllegalArgumentException("Cache duration could not be created using '" + timeValue
+ "'. This value must be an ISO-8601 period or a numeric value representing the duration in milliseconds.");
}

@Override
public ConfigurationException samlMetaDataNoIdentityProviderDefined() {
return new ConfigurationException("No configuration provided for the Identity Provider.");
}

@Override
public ConfigurationException samlMetaDataNoServiceProviderDefined() {
return new ConfigurationException("No configuration provided for the Service Provider.");
Expand Down Expand Up @@ -2319,4 +2319,19 @@ public void authorizationManagerError(ConfigurationException e) {
error("Error loading AuthorizationManager.", e);
}

public IllegalStateException jbdcInitializationError(Throwable throwable) {
return new IllegalStateException(throwable);
}

public RuntimeException errorUnmarshallingToken(Throwable e) {
return new RuntimeException(e);
}

public RuntimeException runtimeException(String msg, Throwable e) {
return new RuntimeException(msg, e);
}

public IllegalStateException datasourceIsNull() {
return new IllegalStateException();
}
}
Expand Up @@ -1283,4 +1283,11 @@ public interface PicketLinkLogger {

void authorizationManagerError(ConfigurationException e);

IllegalStateException jbdcInitializationError(Throwable throwable);

RuntimeException errorUnmarshallingToken(Throwable e);

RuntimeException runtimeException(String msg, Throwable e);

IllegalStateException datasourceIsNull();
}
Expand Up @@ -22,13 +22,13 @@

/**
* Service Provider Type
*
* <p>
* <p/>
* <p/>
* Java class for SPType complex type.
*
* <p>
* <p/>
* <p/>
* The following schema fragment specifies the expected content contained within this class.
*
* <p/>
* <pre>
* &lt;complexType name="SPType">
* &lt;complexContent>
Expand All @@ -40,8 +40,6 @@
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
public class SPType extends ProviderType {
protected String serviceURL;
Expand Down Expand Up @@ -69,17 +67,21 @@ public class SPType extends ProviderType {
protected boolean idpUsesPostBinding = true;

private String logOutPage = GeneralConstants.LOGOUT_PAGE_NAME;

/**
* <p>The URL that should be used during a GLO logout. This would usually be an URL from the IDP.</p>
*/
private String logoutUrl;

/**
* The URL used to send a response for an IDP logout request
*/
private String logoutResponseLocation;

/**
* Gets the value of the serviceURL property.
*
* @return possible object is {@link String }
*
*/
public String getServiceURL() {
return serviceURL;
Expand All @@ -89,7 +91,6 @@ public String getServiceURL() {
* Sets the value of the serviceURL property.
*
* @param value allowed object is {@link String }
*
*/
public void setServiceURL(String value) {
this.serviceURL = value;
Expand Down Expand Up @@ -152,16 +153,24 @@ public void setIdpUsesPostBinding(boolean idpPostBinding) {
public String getLogOutPage() {
return this.logOutPage;
}

public void setLogOutPage(String logOutPage) {
this.logOutPage = logOutPage;
}

public String getLogoutUrl() {
return this.logoutUrl;
}

public void setLogoutUrl(String logoutUrl) {
this.logoutUrl = logoutUrl;
}

public String getLogoutResponseLocation() {
return logoutResponseLocation;
}

public void setLogoutResponseLocation(String logoutResponseLocation) {
this.logoutResponseLocation = logoutResponseLocation;
}
}

0 comments on commit 858c477

Please sign in to comment.