blob: d3e3c02904f5c71e52c56cdbd21762b674e85b87 [file] [log] [blame]
Rodrigo Duarte767d01e2016-03-24 15:08:44 -03001# Copyright 2016 Red Hat, Inc.
2# All Rights Reserved.
3#
4# Licensed under the Apache License, Version 2.0 (the "License"); you may
5# not use this file except in compliance with the License. You may obtain
6# a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13# License for the specific language governing permissions and limitations
14# under the License.
15
Rodrigo Duarte767d01e2016-03-24 15:08:44 -030016from oslo_config import cfg
17
Nishant Kumarbdb0ade2017-01-27 01:05:10 -050018identity_feature_option = [
Rodrigo Duartee508fe02016-06-02 16:08:39 -030019 cfg.BoolOpt('federation',
20 default=False,
21 help='Does the environment support the Federated Identity '
22 'feature?'),
Colleen Murphy8ec445b2019-10-17 10:02:31 -070023 cfg.BoolOpt('external_idp',
24 default=True,
25 help='Whether to test federated scenarios against an external '
26 'identity provider. If disabled, only '
27 'Keystone-to-Keystone tests will be enabled.'),
Rodrigo Duartee508fe02016-06-02 16:08:39 -030028]
29
30fed_scenario_group = cfg.OptGroup(name='fed_scenario',
31 title='Federation Scenario Tests Options')
32
33FedScenarioGroup = [
34 # Identity Provider
35 cfg.StrOpt('idp_id',
36 help='The Identity Provider ID'),
37 cfg.ListOpt('idp_remote_ids',
38 default=[],
39 help='The Identity Provider remote IDs list'),
40 cfg.StrOpt('idp_username',
41 help='Username used to login in the Identity Provider'),
42 cfg.StrOpt('idp_password',
43 help='Password used to login in the Identity Provider'),
44 cfg.StrOpt('idp_ecp_url',
45 help='Identity Provider SAML2/ECP URL'),
46
47 # Mapping rules
48 cfg.StrOpt('mapping_remote_type',
49 help='The assertion attribute to be used in the remote rules'),
50 cfg.StrOpt('mapping_user_name',
51 default='{0}',
52 help='The username to be used in the local rules.'),
53 cfg.StrOpt('mapping_group_name',
54 default='federated_users',
55 help='The group name to be used in the local rules. The group '
56 'must have at least one assignment in one project.'),
57 cfg.StrOpt('mapping_group_domain_name',
58 default='federated_domain',
59 help='The domain name where the "mapping_group_name" is '
60 'created.'),
61
62 # Protocol
63 cfg.StrOpt('protocol_id',
64 default='mapped',
65 help='The Protocol ID')
66]