fortify / fcli

fcli is a command-line utility for interacting with various Fortify products
https://fortify.github.io/fcli/
Other
31 stars 18 forks source link

FoD: Have login `--url` option accept both portal and api URLs #390

Closed rsenden closed 1 year ago

rsenden commented 1 year ago

The fcli fod session login command currently requires the FoD API URL to be passed to the --url option, however users may be tempted to pass the portal URL instead. Assuming all FoD instances use the api.<portal-host> as the host name for accessing API endpoints, the fcli fod session login command should add the api. prefix to the given URL if it doesn't already start with api., thereby having the --url option accept both API and portal URLs.