RPSigninRequest.java revision 6cf99bcf5206a0fcc9dd9296fc46ac28c3fe8ade
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: RPSigninRequest.java,v 1.9 2009/11/03 00:48:54 madan_ranganath Exp $
*
* Portions Copyrighted 2015-2016 ForgeRock AS.
*/
/**
* This class implements the sign-in request for the service provider.
*/
public class RPSigninRequest extends WSFederationAction {
/**
* Creates a new instance of RPSigninRequest
* @param request HTTPServletRequest for this interaction
* @param response HTTPServletResponse for this interaction
* @param whr the whr parameter from the signin request
* @param wct the wct parameter from the signin request
* @param wctx the wctx parameter from the signin request
* @param wreply the wreply parameter from the signin request
*/
}
/**
* Processes the sign-in request, redirecting the browser to the identity
* provider via the HttpServletResponse passed to the constructor.
*/
{
if (debug.messageEnabled()) {
}
// Exchange reply URL for opaque identifier
}
request.getRequestURI());
throw new WSFederationException(
}
{
"invalidMetaAlias", args);
}
"badSPEntityID",args);
}
if ( accountRealmSelection == null )
{
}
if ( accountRealmCookieName == null )
{
}
if (debug.messageEnabled()) {
}
{
// whr parameter overrides other mechanisms...
idpIssuerName = whr;
{
// ...and overwrites cookie
// Set cookie to persist for a year
}
}
else
{
if (debug.messageEnabled()) {
}
} else if (accountRealmSelection.equals(
break;
}
}
}
} else {
throw new WSFederationException(
}
}
if (debug.messageEnabled()) {
}
{
// we know the entity ID
}
if (idpEntityId == null) {
// See if there is only one trusted IdP configured...
{
spEntityId, idp) ) {
}
}
{
// Misconfiguration!
throw new WSFederationException(
}
{
}
}
if ( idpEntityId != null )
{
}
// Set LB cookie here so it's done regardless of which redirect happens
// We want response to come back to this instance
// If we still don't know the IdP, redirect to home realm discovery
}
if (debug.messageEnabled()) {
"no account realm - redirecting to :" + url);
}
return;
}
if (debug.messageEnabled()) {
}
if (debug.messageEnabled()) {
}
if (debug.messageEnabled()) {
}
{
}
if (debug.messageEnabled()) {
}
}
}