sakuraapi / cli

Command Line Interface for Scaffolding and Managing SakuraAPI Projects
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Going into infinite loop while configuring JWT role. #17

Open vasuvanka opened 6 years ago

vasuvanka commented 6 years ago

Steps to reproduce 1) create a project using Sapi init sakura-test. 2) follow the description and provide inputs until JWT role * What JWT role does this server fulfill?: (none) select i)issuer ? Server JWT Issuer Name: localhost ? Server JWT Signing Key: BbI.4DdtAuHGGYOHYWya}OxEF3&6+oH

then it will ask for audiences ? Audience Server Name: localhost:5050 ? Audience Server Key: "=BQgkEl:rCwuj&J#vk,#wS_)Ho4zC[+

it will loop continuously there is no specified way to exit from the loop.

if I forcefully exited the process then all my actions and data loss.so here there should be a way to exit from the loop while configuring the issuer.

etsuo commented 6 years ago

@vasuvanka thanks for the report.

I think this is a UX issue. The prompt says "An issuer needs to know the audiences that will be served :". You would type done to stop the loop. However, this may not be obvious enough, so perhaps it would be better to prompt after each JWT configuration whether or not the add another JWT configuration, or continue.

I'll label this as an enhancement, and we'll include the improvement next release.

For now, however, just type done to break out of the loop.

Thanks!