Search in sources :

Example 1 with StringUtils.equalsIgnoreCase

use of org.apache.commons.lang3.StringUtils.equalsIgnoreCase in project molgenis by molgenis.

the class LexicalCategoryMapper method findBestCategoryMatch.

public Category findBestCategoryMatch(Category sourceCategory, List<Category> targetCategories) {
    String sourceCategoryLabel = sourceCategory.getLabel().toLowerCase();
    Category bestCategory = null;
    double bestNGramScore = -1;
    for (Category targetCategory : targetCategories) {
        String targetCategoryLabel = targetCategory.getLabel();
        if (StringUtils.equalsIgnoreCase(sourceCategoryLabel, targetCategoryLabel)) {
            return targetCategory;
        }
        double ngramScore = NGramDistanceAlgorithm.stringMatching(sourceCategoryLabel, targetCategoryLabel);
        if (bestNGramScore == -1 || bestNGramScore < ngramScore) {
            bestNGramScore = ngramScore;
            bestCategory = targetCategory;
        }
    }
    if (bestNGramScore < DEFAULT_THRESHOLD) {
        Optional<?> findFirst = targetCategories.stream().map(targetCategory -> applyCustomRules(sourceCategory, targetCategory)).filter(Objects::nonNull).sorted().findFirst();
        if (findFirst.isPresent() && findFirst.get() instanceof CategoryMatchQuality) {
            bestCategory = ((CategoryMatchQuality<?>) findFirst.get()).getTargetCategory();
        }
    }
    return bestCategory;
}
Also used : NGramDistanceAlgorithm(org.molgenis.semanticsearch.string.NGramDistanceAlgorithm) Objects(java.util.Objects) CategoryMatchQuality(org.molgenis.semanticmapper.algorithmgenerator.rules.CategoryMatchQuality) List(java.util.List) CategoryRule(org.molgenis.semanticmapper.algorithmgenerator.rules.CategoryRule) Category(org.molgenis.semanticmapper.algorithmgenerator.bean.Category) Optional(java.util.Optional) StringUtils(org.apache.commons.lang3.StringUtils) Category(org.molgenis.semanticmapper.algorithmgenerator.bean.Category) Objects(java.util.Objects) CategoryMatchQuality(org.molgenis.semanticmapper.algorithmgenerator.rules.CategoryMatchQuality)

Example 2 with StringUtils.equalsIgnoreCase

use of org.apache.commons.lang3.StringUtils.equalsIgnoreCase in project azure-tools-for-java by Microsoft.

the class CreateRedisCacheForm method getData.

private RedisConfig getData() {
    RedisConfig redisConfig = new RedisConfig();
    redisConfig.setSubscription(this.currentSub);
    redisConfig.setRegion(Region.fromName(selectedLocationValue));
    redisConfig.setResourceGroup(newResGrp ? new DraftResourceGroup(this.currentSub, selectedResGrpValue) : com.microsoft.azure.toolkit.lib.Azure.az(AzureGroup.class).get(this.currentSub.getId(), selectedResGrpValue));
    redisConfig.setEnableNonSslPort(noSSLPort);
    redisConfig.setPricingTier(PricingTier.values().stream().filter(pricingTier -> StringUtils.equalsIgnoreCase(pricingTier.toString(), selectedPriceTierValue)).findFirst().orElse(null));
    redisConfig.setName(dnsNameValue);
    return redisConfig;
}
Also used : AuthMethodManager(com.microsoft.azuretools.authmanage.AuthMethodManager) URL(java.net.URL) InvalidFormDataException(com.microsoft.azuretools.azurecommons.exceptions.InvalidFormDataException) IDialogConstants(org.eclipse.jface.dialogs.IDialogConstants) StringUtils(org.apache.commons.lang3.StringUtils) Point(org.eclipse.swt.graphics.Point) RedisCacheUtil(com.microsoft.azuretools.azurecommons.helpers.RedisCacheUtil) AzureTitleAreaDialogWrapper(com.microsoft.azuretools.core.components.AzureTitleAreaDialogWrapper) Composite(org.eclipse.swt.widgets.Composite) Map(java.util.Map) AzureGroup(com.microsoft.azure.toolkit.lib.resource.AzureGroup) Activator(com.microsoft.azuretools.core.Activator) MessageDialog(org.eclipse.jface.dialogs.MessageDialog) SelectionAdapter(org.eclipse.swt.events.SelectionAdapter) ResourceEx(com.microsoft.azuretools.core.mvp.model.ResourceEx) AzureActionEnum(com.microsoft.tooling.msservices.serviceexplorer.AzureActionEnum) Text(org.eclipse.swt.widgets.Text) ModifyEvent(org.eclipse.swt.events.ModifyEvent) Button(org.eclipse.swt.widgets.Button) PlatformUI(org.eclipse.ui.PlatformUI) ErrorType(com.microsoft.azuretools.telemetrywrapper.ErrorType) Operation(com.microsoft.azuretools.telemetrywrapper.Operation) CREATE_REDIS(com.microsoft.azuretools.telemetry.TelemetryConstants.CREATE_REDIS) Collectors(java.util.stream.Collectors) AzureRedis(com.microsoft.azure.toolkit.redis.AzureRedis) List(java.util.List) AzureAccount(com.microsoft.azure.toolkit.lib.auth.AzureAccount) SWT(org.eclipse.swt.SWT) AzureMvpModel(com.microsoft.azuretools.core.mvp.model.AzureMvpModel) FieldDecorationRegistry(org.eclipse.jface.fieldassist.FieldDecorationRegistry) REDIS(com.microsoft.azuretools.telemetry.TelemetryConstants.REDIS) EventUtil(com.microsoft.azuretools.telemetrywrapper.EventUtil) Label(org.eclipse.swt.widgets.Label) AzureTaskManager(com.microsoft.azure.toolkit.lib.common.task.AzureTaskManager) ControlDecoration(org.eclipse.jface.fieldassist.ControlDecoration) RedisCache(com.microsoft.azure.toolkit.redis.RedisCache) Node(com.microsoft.tooling.msservices.serviceexplorer.Node) Image(org.eclipse.swt.graphics.Image) HashMap(java.util.HashMap) AzureManager(com.microsoft.azuretools.sdkmanage.AzureManager) RedisCacheModule(com.microsoft.tooling.msservices.serviceexplorer.azure.rediscache.RedisCacheModule) CreateResourceGroupTask(com.microsoft.azure.toolkit.lib.resource.task.CreateResourceGroupTask) AzureTask(com.microsoft.azure.toolkit.lib.common.task.AzureTask) Region(com.microsoft.azure.toolkit.lib.common.model.Region) ResourceBundle(java.util.ResourceBundle) MessageHandler(com.microsoft.azuretools.azureexplorer.messages.MessageHandler) DefaultLoader(com.microsoft.tooling.msservices.components.DefaultLoader) GridData(org.eclipse.swt.layout.GridData) FieldDecoration(org.eclipse.jface.fieldassist.FieldDecoration) Link(org.eclipse.swt.widgets.Link) Subscription(com.microsoft.azure.toolkit.lib.common.model.Subscription) PricingTier(com.microsoft.azure.toolkit.redis.PricingTier) Combo(org.eclipse.swt.widgets.Combo) Shell(org.eclipse.swt.widgets.Shell) DraftResourceGroup(com.microsoft.azuretools.azureexplorer.forms.common.DraftResourceGroup) IOException(java.io.IOException) ResourceGroup(com.microsoft.azure.toolkit.lib.common.model.ResourceGroup) Draft(com.microsoft.azuretools.azureexplorer.forms.common.Draft) ModifyListener(org.eclipse.swt.events.ModifyListener) TelemetryManager(com.microsoft.azuretools.telemetrywrapper.TelemetryManager) SelectionEvent(org.eclipse.swt.events.SelectionEvent) RedisConfig(com.microsoft.azure.toolkit.redis.RedisConfig) Comparator(java.util.Comparator) Control(org.eclipse.swt.widgets.Control) Utils(com.microsoft.azuretools.azurecommons.util.Utils) GridLayout(org.eclipse.swt.layout.GridLayout) DraftResourceGroup(com.microsoft.azuretools.azureexplorer.forms.common.DraftResourceGroup) AzureGroup(com.microsoft.azure.toolkit.lib.resource.AzureGroup) RedisConfig(com.microsoft.azure.toolkit.redis.RedisConfig)

Example 3 with StringUtils.equalsIgnoreCase

use of org.apache.commons.lang3.StringUtils.equalsIgnoreCase in project azure-tools-for-java by Microsoft.

the class SqlServerPropertyView method showProperty.

// @Override
public void showProperty(SqlServerProperty property) {
    SqlServerEntity entity = property.getServer().entity();
    Subscription subscription = Azure.az(AzureAccount.class).account().getSubscription(entity.getSubscriptionId());
    if (subscription != null) {
        overview.getSubscriptionTextField().setText(subscription.getName());
    }
    databaseComboBox.setServer(property.getServer());
    overview.getResourceGroupTextField().setText(entity.getResourceGroupName());
    overview.getStatusTextField().setText(entity.getState());
    overview.getLocationTextField().setText(entity.getRegion().getLabel());
    overview.getSubscriptionIDTextField().setText(entity.getSubscriptionId());
    overview.getServerNameTextField().setText(entity.getFullyQualifiedDomainName());
    overview.getServerNameTextField().setCaretPosition(0);
    overview.getServerAdminLoginNameTextField().setText(entity.getAdministratorLoginName() + "@" + entity.getName());
    overview.getServerAdminLoginNameTextField().setCaretPosition(0);
    overview.getVersionTextField().setText(entity.getVersion());
    if ("Ready".equals(entity.getState())) {
        List<FirewallRuleEntity> firewallRules = property.getFirewallRules();
        originalAllowAccessToAzureServices = firewallRules.stream().anyMatch(e -> FirewallRuleEntity.ACCESS_FROM_AZURE_SERVICES_FIREWALL_RULE_NAME.equalsIgnoreCase(e.getName()));
        connectionSecurity.getAllowAccessFromAzureServicesCheckBox().setSelected(originalAllowAccessToAzureServices);
        originalAllowAccessToLocal = firewallRules.stream().anyMatch(e -> StringUtils.equalsIgnoreCase(FirewallRuleEntity.getAccessFromLocalFirewallRuleName(), e.getName()));
        connectionSecurity.getAllowAccessFromLocalMachineCheckBox().setSelected(originalAllowAccessToLocal);
    } else {
        connectionSecuritySeparator.collapse();
        connectionSecuritySeparator.setEnabled(false);
        connectionStringsSeparator.collapse();
        connectionStringsSeparator.setEnabled(false);
    }
}
Also used : Azure(com.microsoft.azure.toolkit.lib.Azure) VirtualFile(com.intellij.openapi.vfs.VirtualFile) FirewallRuleEntity(com.microsoft.azure.toolkit.lib.database.entity.FirewallRuleEntity) Node(com.microsoft.tooling.msservices.serviceexplorer.Node) HashMap(java.util.HashMap) StringUtils(org.apache.commons.lang3.StringUtils) SqlServerEntity(com.microsoft.azure.toolkit.lib.sqlserver.model.SqlServerEntity) AzureTask(com.microsoft.azure.toolkit.lib.common.task.AzureTask) FileEditorManager(com.intellij.openapi.fileEditor.FileEditorManager) SqlDatabaseEntity(com.microsoft.azure.toolkit.lib.sqlserver.model.SqlDatabaseEntity) Map(java.util.Map) Project(com.intellij.openapi.project.Project) Nonnull(javax.annotation.Nonnull) SqlServerModule(com.microsoft.tooling.msservices.serviceexplorer.azure.sqlserver.SqlServerModule) Subscription(com.microsoft.azure.toolkit.lib.common.model.Subscription) ConnectionStringsOutputPanel(com.microsoft.azure.toolkit.intellij.database.ui.ConnectionStringsOutputPanel) ItemEvent(java.awt.event.ItemEvent) AzureToolkitRuntimeException(com.microsoft.azure.toolkit.lib.common.exception.AzureToolkitRuntimeException) ActionConstants(com.microsoft.azuretools.ActionConstants) SqlServerProperty(com.microsoft.tooling.msservices.serviceexplorer.azure.sqlserver.SqlServerProperty) MySQLPropertyActionPanel(com.microsoft.azure.toolkit.intellij.database.ui.MySQLPropertyActionPanel) SqlServer(com.microsoft.azure.toolkit.lib.sqlserver.SqlServer) BaseEditor(com.microsoft.azure.toolkit.intellij.common.BaseEditor) ActionEvent(java.awt.event.ActionEvent) JdbcUrl(com.microsoft.azure.toolkit.lib.database.JdbcUrl) DatabaseTemplateUtils(com.microsoft.azure.toolkit.lib.database.utils.DatabaseTemplateUtils) DatabaseComboBox(com.microsoft.azure.toolkit.intellij.database.DatabaseComboBox) List(java.util.List) AzureSqlServer(com.microsoft.azure.toolkit.lib.sqlserver.AzureSqlServer) EventType(com.microsoft.azuretools.telemetrywrapper.EventType) AzureAccount(com.microsoft.azure.toolkit.lib.auth.AzureAccount) TelemetryConstants(com.microsoft.azuretools.telemetry.TelemetryConstants) MvpView(com.microsoft.azuretools.core.mvp.ui.base.MvpView) AzureEventBus(com.microsoft.azure.toolkit.lib.common.event.AzureEventBus) EventUtil(com.microsoft.azuretools.telemetrywrapper.EventUtil) AzureHideableTitledSeparator(com.microsoft.azure.toolkit.intellij.common.AzureHideableTitledSeparator) NotNull(org.jetbrains.annotations.NotNull) ConnectionSecurityPanel(com.microsoft.azure.toolkit.intellij.database.ui.ConnectionSecurityPanel) Utils(com.microsoft.azuretools.azurecommons.util.Utils) AzureTaskManager(com.microsoft.azure.toolkit.lib.common.task.AzureTaskManager) javax.swing(javax.swing) SqlServerEntity(com.microsoft.azure.toolkit.lib.sqlserver.model.SqlServerEntity) FirewallRuleEntity(com.microsoft.azure.toolkit.lib.database.entity.FirewallRuleEntity) Subscription(com.microsoft.azure.toolkit.lib.common.model.Subscription)

Example 4 with StringUtils.equalsIgnoreCase

use of org.apache.commons.lang3.StringUtils.equalsIgnoreCase in project cas by apereo.

the class CasDocumentationApplication method main.

public static void main(final String[] args) throws Exception {
    var options = new Options();
    var dt = new Option("d", "data", true, "Data directory");
    dt.setRequired(true);
    options.addOption(dt);
    var ver = new Option("v", "version", true, "Project version");
    ver.setRequired(true);
    options.addOption(ver);
    var root = new Option("r", "root", true, "Project root directory");
    root.setRequired(true);
    options.addOption(root);
    var ft = new Option("f", "filter", true, "Property filter pattern");
    ft.setRequired(false);
    options.addOption(ft);
    var act = new Option("a", "actuators", true, "Generate data for actuator endpoints");
    act.setRequired(false);
    options.addOption(act);
    var tp = new Option("tp", "thirdparty", true, "Generate data for third party");
    tp.setRequired(false);
    options.addOption(tp);
    var sp = new Option("sp", "serviceproperties", true, "Generate data for registered services properties");
    sp.setRequired(false);
    options.addOption(sp);
    var feats = new Option("ft", "features", true, "Generate data for feature toggles and descriptors");
    feats.setRequired(false);
    options.addOption(feats);
    new HelpFormatter().printHelp("CAS Documentation", options);
    var cmd = new DefaultParser().parse(options, args);
    var dataDirectory = cmd.getOptionValue("data");
    var projectVersion = cmd.getOptionValue("version");
    var projectRootDirectory = cmd.getOptionValue("root");
    var propertyFilter = cmd.getOptionValue("filter", ".+");
    var results = CasConfigurationMetadataCatalog.query(ConfigurationMetadataCatalogQuery.builder().queryType(ConfigurationMetadataCatalogQuery.QueryTypes.CAS).queryFilter(property -> RegexUtils.find(propertyFilter, property.getName())).build());
    var groups = new HashMap<String, Set<CasReferenceProperty>>();
    results.properties().stream().filter(property -> StringUtils.isNotBlank(property.getModule())).peek(property -> {
        var desc = cleanDescription(property);
        property.setDescription(desc);
    }).forEach(property -> {
        if (groups.containsKey(property.getModule())) {
            groups.get(property.getModule()).add(property);
        } else {
            var values = new TreeSet<CasReferenceProperty>();
            values.add(property);
            groups.put(property.getModule(), values);
        }
    });
    var dataPath = new File(dataDirectory, projectVersion);
    if (dataPath.exists()) {
        FileUtils.deleteQuietly(dataPath);
    }
    dataPath.mkdirs();
    groups.forEach((key, value) -> {
        var destination = new File(dataPath, key);
        destination.mkdirs();
        var configFile = new File(destination, "config.yml");
        CasConfigurationMetadataCatalog.export(configFile, value);
    });
    var thirdparty = cmd.getOptionValue("thirdparty", "true");
    if (StringUtils.equalsIgnoreCase("true", thirdparty)) {
        exportThirdPartyConfiguration(dataPath, propertyFilter);
    }
    var registeredServicesProps = cmd.getOptionValue("serviceproperties", "true");
    if (StringUtils.equalsIgnoreCase("true", registeredServicesProps)) {
        exportRegisteredServiceProperties(dataPath);
    }
    exportTemplateViews(projectRootDirectory, dataPath);
    exportThemeProperties(projectRootDirectory, dataPath);
    var actuators = cmd.getOptionValue("actuators", "true");
    if (StringUtils.equalsIgnoreCase("true", actuators)) {
        exportActuatorEndpoints(dataPath);
    }
    var features = cmd.getOptionValue("features", "true");
    if (StringUtils.equalsIgnoreCase("true", features)) {
        exportFeatureToggles(dataPath);
    }
}
Also used : HelpFormatter(org.apache.commons.cli.HelpFormatter) PathVariable(org.springframework.web.bind.annotation.PathVariable) RandomUtils(org.apereo.cas.util.RandomUtils) RequestParam(org.springframework.web.bind.annotation.RequestParam) Arrays(java.util.Arrays) ReadOperation(org.springframework.boot.actuate.endpoint.annotation.ReadOperation) LoggerFactory(org.slf4j.LoggerFactory) CentralAuthenticationService(org.apereo.cas.CentralAuthenticationService) Reflections(org.reflections.Reflections) StringUtils(org.apache.commons.lang3.StringUtils) DefaultParser(org.apache.commons.cli.DefaultParser) PutMapping(org.springframework.web.bind.annotation.PutMapping) Map(java.util.Map) DeleteMapping(org.springframework.web.bind.annotation.DeleteMapping) Method(java.lang.reflect.Method) PostMapping(org.springframework.web.bind.annotation.PostMapping) Unchecked(org.jooq.lambda.Unchecked) RequestMethod(org.springframework.web.bind.annotation.RequestMethod) Set(java.util.Set) ClasspathHelper(org.reflections.util.ClasspathHelper) LocalVariableTableParameterNameDiscoverer(org.springframework.core.LocalVariableTableParameterNameDiscoverer) StandardCharsets(java.nio.charset.StandardCharsets) Objects(java.util.Objects) List(java.util.List) Annotation(java.lang.annotation.Annotation) Pattern(java.util.regex.Pattern) RegisteredServiceProperty(org.apereo.cas.services.RegisteredServiceProperty) Options(org.apache.commons.cli.Options) ClassPathResource(org.springframework.core.io.ClassPathResource) ArrayUtils(org.apache.commons.lang3.ArrayUtils) HashMap(java.util.HashMap) WriteOperation(org.springframework.boot.actuate.endpoint.annotation.WriteOperation) HelpFormatter(org.apache.commons.cli.HelpFormatter) TreeSet(java.util.TreeSet) DeleteOperation(org.springframework.boot.actuate.endpoint.annotation.DeleteOperation) PatchMapping(org.springframework.web.bind.annotation.PatchMapping) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) LinkedHashMap(java.util.LinkedHashMap) Operation(io.swagger.v3.oas.annotations.Operation) HttpServletRequest(javax.servlet.http.HttpServletRequest) GetMapping(org.springframework.web.bind.annotation.GetMapping) Option(org.apache.commons.cli.Option) ConfigurationBuilder(org.reflections.util.ConfigurationBuilder) CasReferenceProperty(org.apereo.cas.metadata.CasReferenceProperty) RegExUtils(org.apache.commons.lang3.RegExUtils) Logger(org.slf4j.Logger) Properties(java.util.Properties) Endpoint(org.springframework.boot.actuate.endpoint.annotation.Endpoint) HttpServletResponse(javax.servlet.http.HttpServletResponse) ConfigurationMetadataCatalogQuery(org.apereo.cas.metadata.ConfigurationMetadataCatalogQuery) ConditionalOnFeature(org.apereo.cas.util.spring.boot.ConditionalOnFeature) FileUtils(org.apache.commons.io.FileUtils) File(java.io.File) RegexUtils(org.apereo.cas.util.RegexUtils) RestControllerEndpoint(org.springframework.boot.actuate.endpoint.web.annotation.RestControllerEndpoint) CasFeatureEnabledCondition(org.apereo.cas.util.spring.boot.CasFeatureEnabledCondition) CasConfigurationMetadataCatalog(org.apereo.cas.metadata.CasConfigurationMetadataCatalog) Selector(org.springframework.boot.actuate.endpoint.annotation.Selector) Options(org.apache.commons.cli.Options) HashMap(java.util.HashMap) LinkedHashMap(java.util.LinkedHashMap) TreeSet(java.util.TreeSet) Option(org.apache.commons.cli.Option) CasReferenceProperty(org.apereo.cas.metadata.CasReferenceProperty) File(java.io.File) DefaultParser(org.apache.commons.cli.DefaultParser)

Example 5 with StringUtils.equalsIgnoreCase

use of org.apache.commons.lang3.StringUtils.equalsIgnoreCase in project cas by apereo.

the class DefaultDelegatedClientAuthenticationWebflowManager method storeDelegatedClientAuthenticationRequest.

/**
 * Store delegated client authentication request.
 *
 * @param webContext the web context
 * @return the transient session ticket
 * @throws Exception the exception
 */
protected TransientSessionTicket storeDelegatedClientAuthenticationRequest(final JEEContext webContext) throws Exception {
    val properties = buildTicketProperties(webContext);
    val originalService = configContext.getArgumentExtractor().extractService(webContext.getNativeRequest());
    val service = configContext.getAuthenticationRequestServiceSelectionStrategies().resolveService(originalService);
    properties.put(CasProtocolConstants.PARAMETER_SERVICE, originalService);
    properties.put(CasProtocolConstants.PARAMETER_TARGET_SERVICE, service);
    val registeredService = configContext.getServicesManager().findServiceBy(service);
    webContext.getRequestParameter(RedirectionActionBuilder.ATTRIBUTE_FORCE_AUTHN).or(() -> Optional.of(Boolean.toString(RegisteredServiceProperties.DELEGATED_AUTHN_FORCE_AUTHN.isAssignedTo(registeredService)))).filter(value -> StringUtils.equalsIgnoreCase(value, "true")).ifPresent(attr -> properties.put(RedirectionActionBuilder.ATTRIBUTE_FORCE_AUTHN, true));
    webContext.getRequestParameter(RedirectionActionBuilder.ATTRIBUTE_PASSIVE).or(() -> Optional.of(Boolean.toString(RegisteredServiceProperties.DELEGATED_AUTHN_PASSIVE_AUTHN.isAssignedTo(registeredService)))).filter(value -> StringUtils.equalsIgnoreCase(value, "true")).ifPresent(attr -> properties.put(RedirectionActionBuilder.ATTRIBUTE_PASSIVE, true));
    val transientFactory = (TransientSessionTicketFactory) configContext.getTicketFactory().get(TransientSessionTicket.class);
    val ticket = transientFactory.create(originalService, properties);
    LOGGER.debug("Storing delegated authentication request ticket [{}] for service [{}] with properties [{}]", ticket.getId(), ticket.getService(), ticket.getProperties());
    configContext.getCentralAuthenticationService().addTicket(ticket);
    webContext.setRequestAttribute(PARAMETER_CLIENT_ID, ticket.getId());
    if (properties.containsKey(RedirectionActionBuilder.ATTRIBUTE_FORCE_AUTHN)) {
        webContext.setRequestAttribute(RedirectionActionBuilder.ATTRIBUTE_FORCE_AUTHN, true);
    }
    if (properties.containsKey(RedirectionActionBuilder.ATTRIBUTE_PASSIVE)) {
        webContext.setRequestAttribute(RedirectionActionBuilder.ATTRIBUTE_PASSIVE, true);
    }
    return ticket;
}
Also used : lombok.val(lombok.val) CasClient(org.pac4j.cas.client.CasClient) Getter(lombok.Getter) RegisteredServiceProperties(org.apereo.cas.services.RegisteredServiceProperty.RegisteredServiceProperties) RequiredArgsConstructor(lombok.RequiredArgsConstructor) SAML2Client(org.pac4j.saml.client.SAML2Client) HashMap(java.util.HashMap) DelegatedClientAuthenticationWebflowManager(org.apereo.cas.web.flow.DelegatedClientAuthenticationWebflowManager) StringUtils(org.apache.commons.lang3.StringUtils) RequestContext(org.springframework.webflow.execution.RequestContext) SAML2StateGenerator(org.pac4j.saml.state.SAML2StateGenerator) WebContext(org.pac4j.core.context.WebContext) TransientSessionTicketFactory(org.apereo.cas.ticket.TransientSessionTicketFactory) OidcClient(org.pac4j.oidc.client.OidcClient) Client(org.pac4j.core.client.Client) Map(java.util.Map) JEEContext(org.pac4j.core.context.JEEContext) RedirectionActionBuilder(org.pac4j.core.redirect.RedirectionActionBuilder) CasProtocolConstants(org.apereo.cas.CasProtocolConstants) TransientSessionTicket(org.apereo.cas.ticket.TransientSessionTicket) UnauthorizedServiceException(org.apereo.cas.services.UnauthorizedServiceException) lombok.val(lombok.val) Serializable(java.io.Serializable) SamlProtocolConstants(org.apereo.cas.support.saml.SamlProtocolConstants) Slf4j(lombok.extern.slf4j.Slf4j) OAuth10Client(org.pac4j.oauth.client.OAuth10Client) Service(org.apereo.cas.authentication.principal.Service) DelegatedClientAuthenticationConfigurationContext(org.apereo.cas.web.flow.DelegatedClientAuthenticationConfigurationContext) Optional(java.util.Optional) WebUtils(org.apereo.cas.web.support.WebUtils) OAuth20Client(org.pac4j.oauth.client.OAuth20Client) Transactional(org.springframework.transaction.annotation.Transactional) TransientSessionTicket(org.apereo.cas.ticket.TransientSessionTicket) TransientSessionTicketFactory(org.apereo.cas.ticket.TransientSessionTicketFactory)

Aggregations

StringUtils (org.apache.commons.lang3.StringUtils)10 List (java.util.List)6 Optional (java.util.Optional)5 HashMap (java.util.HashMap)4 Map (java.util.Map)4 Objects (java.util.Objects)4 Slf4j (lombok.extern.slf4j.Slf4j)3 lombok.val (lombok.val)3 AzureAccount (com.microsoft.azure.toolkit.lib.auth.AzureAccount)2 Subscription (com.microsoft.azure.toolkit.lib.common.model.Subscription)2 AzureTask (com.microsoft.azure.toolkit.lib.common.task.AzureTask)2 AzureTaskManager (com.microsoft.azure.toolkit.lib.common.task.AzureTaskManager)2 Utils (com.microsoft.azuretools.azurecommons.util.Utils)2 EventUtil (com.microsoft.azuretools.telemetrywrapper.EventUtil)2 Node (com.microsoft.tooling.msservices.serviceexplorer.Node)2 IOException (java.io.IOException)2 HashSet (java.util.HashSet)2 HttpServletRequest (javax.servlet.http.HttpServletRequest)2 HttpServletResponse (javax.servlet.http.HttpServletResponse)2 OAuth20GrantTypes (org.apereo.cas.support.oauth.OAuth20GrantTypes)2