Coder Social home page Coder Social logo

cli's People

Contributors

isurangaperera avatar

Watchers

 avatar  avatar

cli's Issues

Error Handling

This is something we can do as we go along. Not a top priority.

Handle things like,

  • Configs not set properly
  • Endpoint not available etc.

Improve config command

Currently in the config command we set the following,

  1. Username and Password to do the service calls
  2. Base URL
  3. Service Endpoints

IMO, we can get rid of configuring service endpoints since we already know them and they are not going to change. For example: UserAdmin endpoint will always be services/UserAdmin.UserAdminHttpsSoap11Endpoint or services/UserAdmin.UserAdminHttpsSoap12Endpoint/ and only the baseURL might change.

Even the baseURL we can have a default value of localhost:9443 and override the value if someone sets it using the config command.

Also noticed that config command gives an error although it was successful...

image

Update README.md

Shall we update the README.md with the expected outputs of each cli command?

ListAllUsers prints an additional empty user

ListAllUsers operation works fine. But I noticed that it prints out an additional empty user when listing.
Checkout the screenshot below. I have two created two users in my Identity Server but the commands prints out three uses, last one being an empty one.

image

Add a README file

Will you be able to add a README file with instructions to setup and run this CLI tool?
This will help anyone to try out this tool easily.

Error while trying to run the cli

Tried running the tool following the instructions given in the README.md

  farazath  ~/Desktop/cli   master   cli config -url localhost:9443 -u admin -p password 
The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `/usr/lib/mono/2.0/mscorlib.dll' directory.

looks like additional libs are required... would be great if you could have some info to build from source.

'cli config' command doesn't work as expected

As I understood the cli config command initializes the credentials necessary to do the service calls to SOAP endpoints?

I tried executed the command and got the below output

image

Can you explain what is the expected output?

Improve addInternalRole command

At the moment addInternalRole does two things if I understood correctly,

  1. Create an internal role with specified permissions.
  2. Assign the internal role to specified user.

addInternalRole gives the idea we are simply creating an internal role with a set of permissions. Maybe we could improve the name to include the idea that users are assigned to the created role as well..

the use of -p to represent permissions is confusing since we already use that for representing password in the config command. May be we should use -permissions to represent this....

Upon successful creation, the tool does not give any feedback. Maybe printing something like
"Internal Role X assigned to User Y" would be great...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.