rockcarver / frodo-cli

A CLI to manage ForgeRock platform deployments supporting Identity Cloud tenants, ForgeOps deployments, and classic deployments.
MIT License
19 stars 17 forks source link

`--llt` option of `frodo admin create-oauth2-client-with-admin-privileges` command is broken #378

Closed vscheuber closed 8 months ago

vscheuber commented 8 months ago

Frodo CLI version

Provide output of frodo -v

cli: v2.0.0-51
lib: v2.0.0-72
node: v20.5.1

Describe the issue

Error running command:

% frodo admin create-oauth2-client-with-admin-privileges --llt frodo-dev
Connected to https://openam-frodo-dev.forgeblocks.com/am [alpha] as service account Frodo-SA-1701393386423 [ba58ff99-76d3-4c69-9c4a-7f150ac70e2c]
Creating oauth2 client with admin privileges in realm "alpha"...
Adding admin scopes to client "0b48992b-a2dd-4ed5-8b07-1fc5d7306da8"...
Creating static user mapping for client "0b48992b-a2dd-4ed5-8b07-1fc5d7306da8"...
Adding admin roles to static user mapping for client "0b48992b-a2dd-4ed5-8b07-1fc5d7306da8"...
Done.
400 Bad Request - Invalid attribute value syntax: 'false' Attribute name: com.forgerock.openam.oauth2provider.accessTokenLifeTime
Error creating long-lived token for client 0b48992b-a2dd-4ed5-8b07-1fc5d7306da8
  Error updating oauth2 client 0b48992b-a2dd-4ed5-8b07-1fc5d7306da8
  HTTP client error
    Code: ERR_BAD_REQUEST
    Status: 400
    Message: Invalid attribute value syntax: 'false' Attribute name: com.forgerock.openam.oauth2provider.accessTokenLifeTime