#
# 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.
#

unit.test:
    name: "composite"
    default: true
    authentication:
      - name: "first"
        flag: "REQUIRED"
      - name: "second"
    authorization:
      - name: "first"
        flag: "OPTIONAL"
      - name: "second"
    outbound:
      - name: "first"
      - name: "second"

security:
    # composite provider policy
    provider-policy:
        type: "COMPOSITE"
        # explicit name of this policy (to be used when this is not the default or when we want to explicitly reference it)
        name: "composite"
        # whether this is the default provider or not (if not, must be explicitly defined by name, if yes, it is returned)
        default: true
        authentication:
          - name: "first"
            flag: "REQUIRED"
          - name: "second"
        authorization:
          - name: "first"
            flag: "OPTIONAL"
          - name: "second"
        outbound:
          - name: "first"
          - name: "second"
    providers:
      - name: "first"
        class: "io.helidon.security.providers.PathBasedProvider"
      - name: "second"
        class: "io.helidon.security.providers.ResourceBasedProvider"
