ConfigureOAuth2.java revision 8b6198b1170e3128c5df83267597f0058d07c70d
608N/A private static final Map<String, String> OIDC_SCOPES = new ImmutableMap.Builder<String, String>()
.build();
.build();
private static final Set<String> OIDC_DEFAULT_SCOPES = asSet("openid", "profile", "email", "address", "phone");
.build();
private static final Map<String, Set<String>> OIDC_ATTRIBUTES = new ImmutableMap.Builder<String, Set<String>>()
.build();
.build();
.build();
.build();
.build())
.build();
.build();
public ConfigureOAuth2(){
boolean createPolicy = false;
createPolicy = true;
} catch (Exception e){
createPolicy = true;
if (createPolicy){
} catch (EntitlementException e) {
MessageFormat.format(getMessage(createPolicy ? POLICY_CREATED : POLICY_EXISTS, locale), POLICY_NAME));
ResourceBundle bundle = ResourceBundle.getBundle("oauth2-default-user-descriptions", localeContext.getLocale());
return result;
return id;
DEBUG.error("Could not find URL resource type on {} application. Found: {}", entitlement.getApplicationName(),
throw new WorkflowException("oauth2.provider.resourceType.error", entitlement.getApplicationName());
private Map<String, Set<String>> getDefaultOAuth2ProviderAttributes(SSOToken token) throws WorkflowException {
final ServiceSchema serviceSchema = new ServiceSchemaManager(SERVICE_NAME, token).getOrganizationSchema();
} catch (SMSException e) {
} catch (SSOException e) {
private void createOAuth2Provider(SSOToken token, String realm, Map<String, Set<String>> attrValues)
throws WorkflowException {
} catch (SMSException e) {
} catch (SSOException e) {