blob: 2f3e7e227d17baf41e59bf2d476cfcd90dbeba44 [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
18
19identity_group = cfg.OptGroup(name='identity',
20 title="Keystone Configuration Options")
21
22IdentityGroup = []
23
24identity_feature_group = cfg.OptGroup(name='identity-feature-enabled',
25 title='Enabled Identity Features')
26
Rodrigo Duartee508fe02016-06-02 16:08:39 -030027IdentityFeatureGroup = [
28 cfg.BoolOpt('federation',
29 default=False,
30 help='Does the environment support the Federated Identity '
31 'feature?'),
32]
33
34fed_scenario_group = cfg.OptGroup(name='fed_scenario',
35 title='Federation Scenario Tests Options')
36
37FedScenarioGroup = [
38 # Identity Provider
39 cfg.StrOpt('idp_id',
40 help='The Identity Provider ID'),
41 cfg.ListOpt('idp_remote_ids',
42 default=[],
43 help='The Identity Provider remote IDs list'),
44 cfg.StrOpt('idp_username',
45 help='Username used to login in the Identity Provider'),
46 cfg.StrOpt('idp_password',
47 help='Password used to login in the Identity Provider'),
48 cfg.StrOpt('idp_ecp_url',
49 help='Identity Provider SAML2/ECP URL'),
50
51 # Mapping rules
52 cfg.StrOpt('mapping_remote_type',
53 help='The assertion attribute to be used in the remote rules'),
54 cfg.StrOpt('mapping_user_name',
55 default='{0}',
56 help='The username to be used in the local rules.'),
57 cfg.StrOpt('mapping_group_name',
58 default='federated_users',
59 help='The group name to be used in the local rules. The group '
60 'must have at least one assignment in one project.'),
61 cfg.StrOpt('mapping_group_domain_name',
62 default='federated_domain',
63 help='The domain name where the "mapping_group_name" is '
64 'created.'),
65
66 # Protocol
67 cfg.StrOpt('protocol_id',
68 default='mapped',
69 help='The Protocol ID')
70]