/*
* 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 legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at 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 copyright [year] [name of copyright owner]".
*
* Copyright 2014 ForgeRock AS.
*/
/**
* JATO view bean for configuring social login providers (Google, Facebook etc) via OpenID Connect or some other
* mechanism. Assumes that all mechanisms are loosely based on OIDC -- i.e., OAuth2 with some form of identity.
*
* @since 12.0.0
*/
public ConfigureSocialAuthNViewBean() {
super("ConfigureSocialAuthN");
this.ptModel = createPageTitleModel();
this.propertySheetModel = createPropertyModel();
}
}
}
protected void registerChildren() {
ptModel.registerChildren(this);
super.registerChildren();
}
} else {
}
return view;
}
return model;
}
// NB: at this point we cannot access the RequestContext so do not know if the provider is known or not.
// Default to unknown and then switch in the beginDisplay method
AMPropertySheetModel model = new AMPropertySheetModel(openPropertySheetXml(UNKNOWN_PROVIDER_PROPERTIES));
return model;
}
try {
super.beginDisplay(event);
// If provider is known then use the simplified property sheet
if (model.isKnownProvider()) {
}
}
}
} catch (AMConsoleException ex) {
}
}
}
}