bserdar / took

OIDC Token manager CLI
Apache License 2.0
6 stars 5 forks source link

Took -p false doesn not set the passwordgrant: false in .took.yml #18

Closed anandchavan closed 6 years ago

anandchavan commented 6 years ago

took-insecure add oidc -c <client id> -k -n <name> -s <secret> -b <callback url> -u <server_url> -p false

Here is the created profile -

  <name>:
    type: oidc-auth
    cfg:
      url: <url>
      tokenapi: ""
      authapi: ""
      form: null
      insecure: true
      profile: ""
      clientid: <client id>
      clientsecret: <secret>
      passwordgrant: true
      callbackurl: <callback url>
bserdar commented 6 years ago

It looks like boolean flags don't expect to get a true/false arg. So I'm changing the help string for this. -p will enable password grant flow, not setting -p will disable it.

bserdar commented 6 years ago

Help text changed.