mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
external-idp: change idp server name to reference name
When you run "ipa idp-show <idp reference>" the IdP reference is shown as "Identity Provider server name". This is confusing as we are pointing to the earlier created IdP reference rather than a server. Other files are updated as well to reflect this change. Additionally some typos are fixed with this patch too. Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
parent
e350756387
commit
9323bafb64
@ -1,6 +1,6 @@
|
|||||||
[//]: # (THE CONTENT BELOW IS GENERATED. DO NOT EDIT.)
|
[//]: # (THE CONTENT BELOW IS GENERATED. DO NOT EDIT.)
|
||||||
# idp_add
|
# idp_add
|
||||||
Add a new Identity Provider server.
|
Add a new Identity Provider reference.
|
||||||
|
|
||||||
### Arguments
|
### Arguments
|
||||||
|Name|Type|Required
|
|Name|Type|Required
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[//]: # (THE CONTENT BELOW IS GENERATED. DO NOT EDIT.)
|
[//]: # (THE CONTENT BELOW IS GENERATED. DO NOT EDIT.)
|
||||||
# idp_del
|
# idp_del
|
||||||
Delete an Identity Provider server.
|
Delete an Identity Provider reference.
|
||||||
|
|
||||||
### Arguments
|
### Arguments
|
||||||
|Name|Type|Required
|
|Name|Type|Required
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[//]: # (THE CONTENT BELOW IS GENERATED. DO NOT EDIT.)
|
[//]: # (THE CONTENT BELOW IS GENERATED. DO NOT EDIT.)
|
||||||
# idp_find
|
# idp_find
|
||||||
Search for Identity Provider servers.
|
Search for Identity Provider references.
|
||||||
|
|
||||||
### Arguments
|
### Arguments
|
||||||
|Name|Type|Required
|
|Name|Type|Required
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[//]: # (THE CONTENT BELOW IS GENERATED. DO NOT EDIT.)
|
[//]: # (THE CONTENT BELOW IS GENERATED. DO NOT EDIT.)
|
||||||
# idp_mod
|
# idp_mod
|
||||||
Modify an Identity Provider server.
|
Modify an Identity Provider reference.
|
||||||
|
|
||||||
### Arguments
|
### Arguments
|
||||||
|Name|Type|Required
|
|Name|Type|Required
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[//]: # (THE CONTENT BELOW IS GENERATED. DO NOT EDIT.)
|
[//]: # (THE CONTENT BELOW IS GENERATED. DO NOT EDIT.)
|
||||||
# idp_show
|
# idp_show
|
||||||
Display information about an Identity Provider server.
|
Display information about an Identity Provider reference.
|
||||||
|
|
||||||
### Arguments
|
### Arguments
|
||||||
|Name|Type|Required
|
|Name|Type|Required
|
||||||
|
@ -112,7 +112,7 @@ suitable, individual parameters can also be added::
|
|||||||
ipa help idp-add
|
ipa help idp-add
|
||||||
Usage: ipa [global-options] idp-add NAME [options]
|
Usage: ipa [global-options] idp-add NAME [options]
|
||||||
|
|
||||||
Add a new Identity Provider server.
|
Add a new Identity Provider reference.
|
||||||
Options:
|
Options:
|
||||||
-h, --help show this help message and exit
|
-h, --help show this help message and exit
|
||||||
--auth-uri=STR OAuth 2.0 authorization endpoint
|
--auth-uri=STR OAuth 2.0 authorization endpoint
|
||||||
@ -370,9 +370,9 @@ The following command adds IdP reference named ``keycloak`` as IPA administrator
|
|||||||
--client-id ipa_oidc_client \
|
--client-id ipa_oidc_client \
|
||||||
--secret
|
--secret
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
Added Identity Provider server "keycloak"
|
Added Identity Provider reference "keycloak"
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
Identity Provider server name: keycloak
|
Identity Provider reference name: keycloak
|
||||||
Authorization URI: https://client.ipademo.local:8443/auth/realms/master/protocol/openid-connect/auth
|
Authorization URI: https://client.ipademo.local:8443/auth/realms/master/protocol/openid-connect/auth
|
||||||
Device authorization URI: https://client.ipademo.local:8443/auth/realms/master/protocol/openid-connect/auth/device
|
Device authorization URI: https://client.ipademo.local:8443/auth/realms/master/protocol/openid-connect/auth/device
|
||||||
Token URI: https://client.ipademo.local:8443/auth/realms/master/protocol/openid-connect/token
|
Token URI: https://client.ipademo.local:8443/auth/realms/master/protocol/openid-connect/token
|
||||||
|
@ -22,34 +22,35 @@ from itertools import chain
|
|||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
__doc__ = _("""
|
__doc__ = _("""
|
||||||
External Identity Provider Servers
|
External Identity Provider References
|
||||||
""") + _("""
|
""") + _("""
|
||||||
Manage External Identity Provider Servers.
|
Manage External Identity Provider References.
|
||||||
""") + _("""
|
""") + _("""
|
||||||
IPA supports the use of an external Identity Provider for Oauth2.0 Device Flow
|
IPA supports the use of an external Identity Provider for OAuth2.0 Device Flow
|
||||||
authentication.
|
authentication.
|
||||||
""") + _("""
|
""") + _("""
|
||||||
EXAMPLES:
|
EXAMPLES:
|
||||||
""") + _("""
|
""") + _("""
|
||||||
Add a new external Identity Provider server:
|
Add a new external Identity Provider reference:
|
||||||
ipa idp-add MyIdP --client-id jhkQty13 \
|
ipa idp-add MyIdP --client-id jhkQty13 \
|
||||||
--auth-uri https://oauth2.idp.com/auth \
|
--auth-uri https://oauth2.idp.com/auth \
|
||||||
--token-uri https://oauth2.idp.com/token --secret
|
--token-uri https://oauth2.idp.com/token --secret
|
||||||
""") + _("""
|
""") + _("""
|
||||||
Add a new external Identity Provider server using github predefined endpoints:
|
Add a new external Identity Provider reference using github predefined
|
||||||
|
endpoints:
|
||||||
ipa idp-add MyIdp --client-id jhkQty13 --provider github --secret
|
ipa idp-add MyIdp --client-id jhkQty13 --provider github --secret
|
||||||
""") + _("""
|
""") + _("""
|
||||||
Find all external Identity Provider servers whose entries include the string
|
Find all external Identity Provider references whose entries include the string
|
||||||
"test.com":
|
"test.com":
|
||||||
ipa idp-find test.com
|
ipa idp-find test.com
|
||||||
""") + _("""
|
""") + _("""
|
||||||
Examine the configuration of an external Identity Provider server:
|
Examine the configuration of an external Identity Provider reference:
|
||||||
ipa idp-show MyIdP
|
ipa idp-show MyIdP
|
||||||
""") + _("""
|
""") + _("""
|
||||||
Change the secret:
|
Change the secret:
|
||||||
ipa idp-mod MyIdP --secret
|
ipa idp-mod MyIdP --secret
|
||||||
""") + _("""
|
""") + _("""
|
||||||
Delete an external Identity Provider server:
|
Delete an external Identity Provider reference:
|
||||||
ipa idp-del MyIdP
|
ipa idp-del MyIdP
|
||||||
""")
|
""")
|
||||||
|
|
||||||
@ -80,8 +81,8 @@ class idp(LDAPObject):
|
|||||||
Identity Provider object.
|
Identity Provider object.
|
||||||
"""
|
"""
|
||||||
container_dn = api.env.container_idp
|
container_dn = api.env.container_idp
|
||||||
object_name = _('Identity Provider server')
|
object_name = _('Identity Provider reference')
|
||||||
object_name_plural = _('Identity Provider servers')
|
object_name_plural = _('Identity Provider references')
|
||||||
object_class = ['ipaidp']
|
object_class = ['ipaidp']
|
||||||
default_attributes = [
|
default_attributes = [
|
||||||
'cn', 'ipaidpauthendpoint', 'ipaidpdevauthendpoint',
|
'cn', 'ipaidpauthendpoint', 'ipaidpdevauthendpoint',
|
||||||
@ -95,13 +96,13 @@ class idp(LDAPObject):
|
|||||||
'ipaidpkeysendpoint', 'ipaidpscope', 'ipaidpsub',
|
'ipaidpkeysendpoint', 'ipaidpscope', 'ipaidpsub',
|
||||||
]
|
]
|
||||||
allow_rename = True
|
allow_rename = True
|
||||||
label = _('Identity Provider servers')
|
label = _('Identity Provider references')
|
||||||
label_singular = _('Identity Provider server')
|
label_singular = _('Identity Provider reference')
|
||||||
|
|
||||||
takes_params = (
|
takes_params = (
|
||||||
Str('cn',
|
Str('cn',
|
||||||
cli_name='name',
|
cli_name='name',
|
||||||
label=_('Identity Provider server name'),
|
label=_('Identity Provider reference name'),
|
||||||
primary_key=True,
|
primary_key=True,
|
||||||
),
|
),
|
||||||
Str('ipaidpauthendpoint?',
|
Str('ipaidpauthendpoint?',
|
||||||
@ -225,8 +226,8 @@ class idp(LDAPObject):
|
|||||||
|
|
||||||
@register()
|
@register()
|
||||||
class idp_add(LDAPCreate):
|
class idp_add(LDAPCreate):
|
||||||
__doc__ = _('Add a new Identity Provider server.')
|
__doc__ = _('Add a new Identity Provider reference.')
|
||||||
msg_summary = _('Added Identity Provider server "%(value)s"')
|
msg_summary = _('Added Identity Provider reference "%(value)s"')
|
||||||
|
|
||||||
# List of pre-populated idp endpoints
|
# List of pre-populated idp endpoints
|
||||||
# key = provider,
|
# key = provider,
|
||||||
@ -409,22 +410,22 @@ class idp_add(LDAPCreate):
|
|||||||
|
|
||||||
@register()
|
@register()
|
||||||
class idp_del(LDAPDelete):
|
class idp_del(LDAPDelete):
|
||||||
__doc__ = _('Delete an Identity Provider server.')
|
__doc__ = _('Delete an Identity Provider reference.')
|
||||||
msg_summary = _('Deleted Identity Provider server "%(value)s"')
|
msg_summary = _('Deleted Identity Provider reference "%(value)s"')
|
||||||
|
|
||||||
|
|
||||||
@register()
|
@register()
|
||||||
class idp_mod(LDAPUpdate):
|
class idp_mod(LDAPUpdate):
|
||||||
__doc__ = _('Modify an Identity Provider server.')
|
__doc__ = _('Modify an Identity Provider reference.')
|
||||||
msg_summary = _('Modified Identity Provider server "%(value)s"')
|
msg_summary = _('Modified Identity Provider reference "%(value)s"')
|
||||||
|
|
||||||
|
|
||||||
@register()
|
@register()
|
||||||
class idp_find(LDAPSearch):
|
class idp_find(LDAPSearch):
|
||||||
__doc__ = _('Search for Identity Provider servers.')
|
__doc__ = _('Search for Identity Provider references.')
|
||||||
msg_summary = ngettext(
|
msg_summary = ngettext(
|
||||||
'%(count)d Identity Provider server matched',
|
'%(count)d Identity Provider reference matched',
|
||||||
'%(count)d Identity Provider servers matched', 0
|
'%(count)d Identity Provider references matched', 0
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_options(self):
|
def get_options(self):
|
||||||
@ -439,4 +440,4 @@ class idp_find(LDAPSearch):
|
|||||||
@register()
|
@register()
|
||||||
class idp_show(LDAPRetrieve):
|
class idp_show(LDAPRetrieve):
|
||||||
__doc__ = _('Display information about an Identity Provider '
|
__doc__ = _('Display information about an Identity Provider '
|
||||||
'server.')
|
'reference.')
|
||||||
|
@ -55,7 +55,7 @@ class TestNonexistentIdp(XMLRPC_test):
|
|||||||
idp.ensure_missing()
|
idp.ensure_missing()
|
||||||
command = idp.make_retrieve_command()
|
command = idp.make_retrieve_command()
|
||||||
with raises_exact(errors.NotFound(
|
with raises_exact(errors.NotFound(
|
||||||
reason='%s: Identity Provider server not found' % idp.cn)):
|
reason='%s: Identity Provider reference not found' % idp.cn)):
|
||||||
command()
|
command()
|
||||||
|
|
||||||
def test_update_nonexistent(self, idp):
|
def test_update_nonexistent(self, idp):
|
||||||
@ -64,7 +64,7 @@ class TestNonexistentIdp(XMLRPC_test):
|
|||||||
command = idp.make_update_command(
|
command = idp.make_update_command(
|
||||||
updates=dict(ipaidpclientid='idpclient2'))
|
updates=dict(ipaidpclientid='idpclient2'))
|
||||||
with raises_exact(errors.NotFound(
|
with raises_exact(errors.NotFound(
|
||||||
reason='%s: Identity Provider server not found' % idp.cn)):
|
reason='%s: Identity Provider reference not found' % idp.cn)):
|
||||||
command()
|
command()
|
||||||
|
|
||||||
def test_delete_nonexistent(self, idp):
|
def test_delete_nonexistent(self, idp):
|
||||||
@ -72,7 +72,7 @@ class TestNonexistentIdp(XMLRPC_test):
|
|||||||
idp.ensure_missing()
|
idp.ensure_missing()
|
||||||
command = idp.make_delete_command()
|
command = idp.make_delete_command()
|
||||||
with raises_exact(errors.NotFound(
|
with raises_exact(errors.NotFound(
|
||||||
reason='%s: Identity Provider server not found' % idp.cn)):
|
reason='%s: Identity Provider reference not found' % idp.cn)):
|
||||||
command()
|
command()
|
||||||
|
|
||||||
def test_rename_nonexistent(self, idp, renamedidp):
|
def test_rename_nonexistent(self, idp, renamedidp):
|
||||||
@ -81,7 +81,7 @@ class TestNonexistentIdp(XMLRPC_test):
|
|||||||
command = idp.make_update_command(
|
command = idp.make_update_command(
|
||||||
updates=dict(setattr='cn=%s' % renamedidp.cn))
|
updates=dict(setattr='cn=%s' % renamedidp.cn))
|
||||||
with raises_exact(errors.NotFound(
|
with raises_exact(errors.NotFound(
|
||||||
reason='%s: Identity Provider server not found' % idp.cn)):
|
reason='%s: Identity Provider reference not found' % idp.cn)):
|
||||||
command()
|
command()
|
||||||
|
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ class IdpTracker(Tracker):
|
|||||||
assert_deepequal(
|
assert_deepequal(
|
||||||
dict(
|
dict(
|
||||||
value=self.cn,
|
value=self.cn,
|
||||||
summary='Added Identity Provider server "%s"' % self.cn,
|
summary='Added Identity Provider reference "%s"' % self.cn,
|
||||||
result=self.filter_attrs(expected),
|
result=self.filter_attrs(expected),
|
||||||
), result)
|
), result)
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ class IdpTracker(Tracker):
|
|||||||
assert_deepequal(
|
assert_deepequal(
|
||||||
dict(
|
dict(
|
||||||
value=[self.cn],
|
value=[self.cn],
|
||||||
summary='Deleted Identity Provider server "%s"' % self.cn,
|
summary='Deleted Identity Provider reference "%s"' % self.cn,
|
||||||
result=dict(failed=[]),
|
result=dict(failed=[]),
|
||||||
), result)
|
), result)
|
||||||
|
|
||||||
@ -113,7 +113,7 @@ class IdpTracker(Tracker):
|
|||||||
assert_deepequal(dict(
|
assert_deepequal(dict(
|
||||||
count=1,
|
count=1,
|
||||||
truncated=False,
|
truncated=False,
|
||||||
summary='1 Identity Provider server matched',
|
summary='1 Identity Provider reference matched',
|
||||||
result=[expected],
|
result=[expected],
|
||||||
), result)
|
), result)
|
||||||
|
|
||||||
@ -165,6 +165,6 @@ class IdpTracker(Tracker):
|
|||||||
expected = self.filter_attrs(self.update_keys | set(extra_keys))
|
expected = self.filter_attrs(self.update_keys | set(extra_keys))
|
||||||
assert_deepequal(dict(
|
assert_deepequal(dict(
|
||||||
value=self.cn,
|
value=self.cn,
|
||||||
summary='Modified Identity Provider server "%s"' % self.cn,
|
summary='Modified Identity Provider reference "%s"' % self.cn,
|
||||||
result=expected
|
result=expected
|
||||||
), result)
|
), result)
|
||||||
|
Loading…
Reference in New Issue
Block a user