rspm import federated-credential
Command to import federated OAuth credentials
Terminal
rspm import federated-credential [flags]Examples
Terminal
# Import with ID token assertion (uses defaults for subject/audience)
rspm import federated-credential --name=[credential name] --client-id=[client-id] --token-endpoint=[token-endpoint] --scope=[scope]
# Import with custom subject and audience
rspm import federated-credential --name=[credential name] --subject=[subject] --audience=[audience] --client-id=[client-id] --token-endpoint=[token-endpoint] --scope=[scope]
# Import with client secret (uses client credentials flow)
rspm import federated-credential --name=[credential name] --client-id=[client-id] --client-secret=[client-secret] --token-endpoint=[token-endpoint] --scope=[scope]Options
Terminal
--audience string The audience claim for the federated OAuth credential (e.g., api://example.com). Defaults to 'packagemanager'.
--client-id string The OAuth client ID for the federated OAuth credential.
--client-secret string The OAuth client secret for the federated OAuth credential. When provided, uses client credentials flow instead of ID token assertion.
-h, --help help for federated-credential
--name string The name of the federated OAuth key used in PPM git builder jobs.
--scope string The OAuth scope for the federated OAuth credential.
--subject string The subject claim for the federated OAuth credential (e.g., user@example.com). Defaults to the git builder name.
--succeed-on-existing Do not return an error if the credentials already exist.
--token-endpoint string The OAuth token endpoint URL for the federated OAuth credential.Options inherited from parent commands
Terminal
-a, --address string The address of the remote server. If not specified, the PACKAGEMANAGER_ADDRESS environment variable is used.
-c, --config string Path to config file
--insecure-ssl-skip-verify If true, skip SSL certificate validation. This reduces the security that SSL normally provides.
-o, --output-format string Specify the output format 'human' for human-readable output or 'json' for JSON-encoded output. (default "human")
-v, --verbose Provide additional output