aaa map-to username
To map the SPIFFE ID to a username for secure authentication and authorization mechanism in gRPC services, use the aaa map-to username command in the XR Config mode.
aaa map-to username username spiffe-id any
Syntax Description
username |
Specifies the username that needs to be mapped with the SPIFFE ID. |
Command Default
By default, the system uses spiffe-user
as username.
Command Modes
XR Config modeCommand History
Release |
Modification |
---|---|
Release 24.2.11 |
This command was introduced. |
Usage Guidelines
Each SPIFFE ID supports only one username. Also, ensure that the username is already configured in the system.
Task ID
Task ID |
Operations |
---|---|
config-services |
read, write |
Examples
The following example shows how to map the SPIFFE ID to a username in gRPC connection:
Router#configure
Router(config)#aaa map-to username cisco spiffe-id any
Router(config)#commit