#
# Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.
#
# 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.
#

security {
    # default policy
    provider-policy.type = "FIRST"

    default-authentication-provider = "FirstInstance"
    default-authorization-provider = "SecondInstance"

    providers: [
        # Order matters... All implemented interfaces will be used by default, can override
        {
            name = "FirstInstance"
            class = "io.helidon.security.providers.ProviderForTesting"
            ProviderForTesting_deny_resource = "DENY"
        },
        {
            name = "SecondInstance"
            class = "io.helidon.security.providers.ProviderForTesting"
            ProviderForTesting_deny_resource = "SECOND_DENY"
            # Following all default to true - so if provider implements the interface, add it as that provider
            #is-authentication-provider
            #is-authorization-provider
            #is-client-security-provider
            #is-audit-provider
        }
    ]
}
