Rodrigo Duarte | 767d01e | 2016-03-24 15:08:44 -0300 | [diff] [blame] | 1 | # 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 Duarte | 767d01e | 2016-03-24 15:08:44 -0300 | [diff] [blame] | 16 | from oslo_config import cfg |
| 17 | |
Nishant Kumar | bdb0ade | 2017-01-27 01:05:10 -0500 | [diff] [blame] | 18 | identity_feature_option = [ |
Rodrigo Duarte | e508fe0 | 2016-06-02 16:08:39 -0300 | [diff] [blame] | 19 | cfg.BoolOpt('federation', |
| 20 | default=False, |
| 21 | help='Does the environment support the Federated Identity ' |
| 22 | 'feature?'), |
| 23 | ] |
| 24 | |
| 25 | fed_scenario_group = cfg.OptGroup(name='fed_scenario', |
| 26 | title='Federation Scenario Tests Options') |
| 27 | |
| 28 | FedScenarioGroup = [ |
| 29 | # Identity Provider |
| 30 | cfg.StrOpt('idp_id', |
| 31 | help='The Identity Provider ID'), |
| 32 | cfg.ListOpt('idp_remote_ids', |
| 33 | default=[], |
| 34 | help='The Identity Provider remote IDs list'), |
| 35 | cfg.StrOpt('idp_username', |
| 36 | help='Username used to login in the Identity Provider'), |
| 37 | cfg.StrOpt('idp_password', |
| 38 | help='Password used to login in the Identity Provider'), |
| 39 | cfg.StrOpt('idp_ecp_url', |
| 40 | help='Identity Provider SAML2/ECP URL'), |
| 41 | |
| 42 | # Mapping rules |
| 43 | cfg.StrOpt('mapping_remote_type', |
| 44 | help='The assertion attribute to be used in the remote rules'), |
| 45 | cfg.StrOpt('mapping_user_name', |
| 46 | default='{0}', |
| 47 | help='The username to be used in the local rules.'), |
| 48 | cfg.StrOpt('mapping_group_name', |
| 49 | default='federated_users', |
| 50 | help='The group name to be used in the local rules. The group ' |
| 51 | 'must have at least one assignment in one project.'), |
| 52 | cfg.StrOpt('mapping_group_domain_name', |
| 53 | default='federated_domain', |
| 54 | help='The domain name where the "mapping_group_name" is ' |
| 55 | 'created.'), |
| 56 | |
| 57 | # Protocol |
| 58 | cfg.StrOpt('protocol_id', |
| 59 | default='mapped', |
| 60 | help='The Protocol ID') |
| 61 | ] |