-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SES-82 Adding support for ECP profile. Proxy count can now be configu…
…red in the WebSSOProfileOptions. List of allowed IDPs can now be configured in the WebSSOProfileOptions.
- Loading branch information
Showing
17 changed files
with
527 additions
and
90 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
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
52 changes: 52 additions & 0 deletions
52
...ml2-core/src/main/java/org/springframework/security/saml/processor/HTTPPAOS11Binding.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,52 @@ | ||
/* | ||
* Copyright 2010 Jonathan Tellier | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.springframework.security.saml.processor; | ||
|
||
import javax.servlet.http.HttpServletRequest; | ||
|
||
import org.opensaml.common.xml.SAMLConstants; | ||
import org.opensaml.liberty.binding.decoding.HTTPPAOS11Decoder; | ||
import org.opensaml.liberty.binding.encoding.HTTPPAOS11Encoder; | ||
import org.opensaml.ws.transport.InTransport; | ||
import org.opensaml.ws.transport.http.HttpServletRequestAdapter; | ||
import org.opensaml.xml.parse.ParserPool; | ||
import org.springframework.security.saml.processor.HTTPSOAP11Binding; | ||
|
||
public class HTTPPAOS11Binding extends HTTPSOAP11Binding { | ||
|
||
public HTTPPAOS11Binding(ParserPool parserPool) { | ||
super(new HTTPPAOS11Decoder(parserPool), new HTTPPAOS11Encoder()); | ||
} | ||
|
||
@Override | ||
public boolean supports(InTransport transport) { | ||
if (transport instanceof HttpServletRequestAdapter) { | ||
HttpServletRequestAdapter t = (HttpServletRequestAdapter) transport; | ||
HttpServletRequest request = t.getWrappedRequest(); | ||
return "POST".equalsIgnoreCase(t.getHTTPMethod()) | ||
&& request.getContentType().startsWith( | ||
org.springframework.security.saml.SAMLConstants.PAOS_HTTP_ACCEPT_HEADER); | ||
} else { | ||
return false; | ||
} | ||
} | ||
|
||
@Override | ||
public String getCommunicationProfileId() { | ||
return SAMLConstants.SAML2_PAOS_BINDING_URI; | ||
} | ||
|
||
} |
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.