/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2012-2016 ForgeRock AS.
*
* 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
* 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]".
*/
.build();
.build();
private static final Set<String> OIDC_DEFAULT_SCOPES = asSet("openid", "profile", "email", "address", "phone");
"ES512"))
))
.build();
private static final Map<String, Set<String>> OIDC_ATTRIBUTES = new ImmutableMap.Builder<String, Set<String>>()
.build();
.build();
.build();
.build();
.build())
.build();
.build();
//params
//service params
//policy params
public ConfigureOAuth2(){
storeProvider = new PrivilegePolicyStoreProvider(factory, Collections.<String, QueryAttribute>emptyMap());
}
throw new WorkflowException("type parameter is required");
}
//replace service attributes
if (createUmaService) {
}
String policyURL = getRequestURL(params) + format(OAUTH2_AUTHORIZE_ENDPOINT, "/".equals(realm) ? "" : realm);
//check if policy exists
boolean createPolicy = false;
try {
try {
createPolicy = true;
}
} catch (Exception e){
createPolicy = true;
}
if (createPolicy){
}
} catch (EntitlementException e) {
throw new WorkflowException("oauth2.provider.policy.failed");
}
return format(messageTemplate, createUmaService ? getMessage(UMA_SERVICE_CREATED, locale) : "", realm,
}
ResourceBundle bundle = ResourceBundle.getBundle("oauth2-default-user-descriptions", localeContext.getLocale());
} else {
}
}
return result;
}
throws EntitlementException, WorkflowException {
if (application == null) {
}
return id;
}
}
QueryFilter<SmsAttribute> name = equalTo(SmsAttribute.newSearchableInstance("name"), POLICY_RESOURCE_TYPE_NAME);
.build();
} else {
}
return resourceType.getUUID();
}
private Map<String, Set<String>> getDefaultOAuth2ProviderAttributes(SSOToken token) throws WorkflowException {
try {
final ServiceSchema serviceSchema = new ServiceSchemaManager(OAUTH2_SERVICE_NAME, token).getOrganizationSchema();
} catch (SMSException e) {
} catch (SSOException e) {
}
}
private void createProvider(String serviceName, SSOToken token, String realm, Map<String, Set<String>> attrValues)
throws WorkflowException {
try {
} catch (SMSException e) {
} catch (SSOException e) {
}
}
}