Mark SAML loader properties as required
All the username and password fields for saml2 plugins are required. Without them the plugin won't work. Change-Id: I868b2b2a9f44913cb117eca554539d9bd356d621
This commit is contained in:
parent
ba6650e9c7
commit
f166819b13
|
@ -29,10 +29,14 @@ class Saml2Password(loading.BaseFederationLoader):
|
||||||
|
|
||||||
options.extend([
|
options.extend([
|
||||||
loading.Opt('identity-provider-url',
|
loading.Opt('identity-provider-url',
|
||||||
|
required=True,
|
||||||
help=('An Identity Provider URL, where the SAML2 '
|
help=('An Identity Provider URL, where the SAML2 '
|
||||||
'authentication request will be sent.')),
|
'authentication request will be sent.')),
|
||||||
loading.Opt('username', help='Username'),
|
loading.Opt('username', help='Username', required=True),
|
||||||
loading.Opt('password', secret=True, help='Password')
|
loading.Opt('password',
|
||||||
|
secret=True,
|
||||||
|
help='Password',
|
||||||
|
required=True)
|
||||||
])
|
])
|
||||||
|
|
||||||
return options
|
return options
|
||||||
|
@ -53,14 +57,20 @@ class ADFSPassword(loading.BaseFederationLoader):
|
||||||
|
|
||||||
options.extend([
|
options.extend([
|
||||||
loading.Opt('identity-provider-url',
|
loading.Opt('identity-provider-url',
|
||||||
|
required=True,
|
||||||
help=('An Identity Provider URL, where the SAML '
|
help=('An Identity Provider URL, where the SAML '
|
||||||
'authentication request will be sent.')),
|
'authentication request will be sent.')),
|
||||||
loading.Opt('service-provider-endpoint',
|
loading.Opt('service-provider-endpoint',
|
||||||
|
required=True,
|
||||||
help="Service Provider's Endpoint"),
|
help="Service Provider's Endpoint"),
|
||||||
loading.Opt('service-provider-entity-id',
|
loading.Opt('service-provider-entity-id',
|
||||||
|
required=True,
|
||||||
help="Service Provider's SAML Entity ID"),
|
help="Service Provider's SAML Entity ID"),
|
||||||
loading.Opt('username', help='Username'),
|
loading.Opt('username', help='Username', required=True),
|
||||||
loading.Opt('password', secret=True, help='Password')
|
loading.Opt('password',
|
||||||
|
secret=True,
|
||||||
|
required=True,
|
||||||
|
help='Password')
|
||||||
])
|
])
|
||||||
|
|
||||||
return options
|
return options
|
||||||
|
|
Loading…
Reference in New Issue