All Downloads are FREE. Search and download functionalities are using the official Maven repository.

config.io_helidon_security_Security.adoc Maven / Gradle / Ivy

///////////////////////////////////////////////////////////////////////////////

    Copyright (c) 2023 Oracle and/or its affiliates.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

///////////////////////////////////////////////////////////////////////////////

ifndef::rootdir[:rootdir: {docdir}/..]
:description: Configuration of io.helidon.security.Security
:keywords: helidon, config, io.helidon.security.Security
:basic-table-intro: The table below lists the configuration keys that configure io.helidon.security.Security
include::{rootdir}/includes/attributes.adoc[]

= Security (security) Configuration

// tag::config[]

Configuration of security providers, integration and other security options


Type: link:{javadoc-base-url}/io.helidon.security/io/helidon/security/Security.html[io.helidon.security.Security]


This is a standalone configuration type, prefix from configuration root: `security`



== Configuration options

.Required configuration options
[cols="3,3a,2,5a"]
|===
|key |type |default value |description

|`providers` |io.helidon.security.spi.SecurityProvider[] (service provider interface)

Such as:

 - xref:{rootdir}/config/io_helidon_security_providers_idcs_mapper_IdcsRoleMapperProvider.adoc[idcs-role-mapper (IdcsRoleMapperProvider)]
 - xref:{rootdir}/config/io_helidon_security_providers_httpauth_HttpBasicAuthProvider.adoc[http-basic-auth (HttpBasicAuthProvider)]
 - xref:{rootdir}/config/io_helidon_security_providers_idcs_mapper_IdcsMtRoleMapperProvider.adoc[idcs-role-mapper (IdcsMtRoleMapperProvider)]
 - xref:{rootdir}/config/io_helidon_security_providers_google_login_GoogleTokenProvider.adoc[google-login (GoogleTokenProvider)]
 - xref:{rootdir}/config/io_helidon_security_providers_oidc_OidcProvider.adoc[oidc (OidcProvider)]
 - xref:{rootdir}/config/io_helidon_security_providers_httpauth_HttpDigestAuthProvider.adoc[http-digest-auth (HttpDigestAuthProvider)]
 - xref:{rootdir}/config/io_helidon_security_providers_jwt_JwtProvider.adoc[jwt (JwtProvider)]
 - xref:{rootdir}/config/io_helidon_security_providers_header_HeaderAtnProvider.adoc[header-atn (HeaderAtnProvider)]
 - xref:{rootdir}/config/io_helidon_security_providers_abac_AbacProvider.adoc[abac (AbacProvider)]

 |{nbsp} |Add a provider, works as #addProvider(io.helidon.security.spi.SecurityProvider, String), where the name is set
 to `Class#getSimpleName()`.

|===



.Optional configuration options
[cols="3,3a,2,5a"]

|===
|key |type |default value |description

|`default-authentication-provider` |string (service provider interface) |{nbsp} |ID of the default authentication provider
|`default-authorization-provider` |string |{nbsp} |ID of the default authorization provider
|`enabled` |boolean |`true` |Security can be disabled using configuration, or explicitly.
 By default, security instance is enabled.
 Disabled security instance will not perform any checks and allow
 all requests.
|`environment.server-time` |xref:{rootdir}/config/io_helidon_security_SecurityTime.adoc[SecurityTime] |{nbsp} |Server time to use when evaluating security policies that depend on time.
|`provider-policy.class-name` |Class |{nbsp} |Provider selection policy class name, only used when type is set to CLASS
|`provider-policy.type` |ProviderSelectionPolicyType (FIRST, COMPOSITE, CLASS) |`FIRST` |Type of the policy.
|`secrets` |Map<string, string> (documented for specific cases) |{nbsp} |Configured secrets
|`secrets.*.config` |io.helidon.security.SecretsProviderConfig (service provider interface) |{nbsp} |Configuration specific to the secret provider
|`secrets.*.name` |string |{nbsp} |Name of the secret, used for lookup
|`secrets.*.provider` |string |{nbsp} |Name of the secret provider
|`tracing.enabled` |boolean |`true` |Whether or not tracing should be enabled. If set to false, security tracer will be a no-op tracer.

|===

// end::config[]




© 2015 - 2025 Weber Informatics LLC | Privacy Policy