Add base authentication scheme in OAuth
Closed this issue · 1 comments
jmnarloch commented
Pazuzu registry has introduced OAuth authentication pazuzu-io/pazuzu-registry#96, in other to co-op with that.
Proposition:
./pazuzu -r http://192.168.99.100:8080/api list --authenticate
./pazuzu -r http://192.168.99.100:8080/api -t https://token.auth.zalando.com/access_token list --authenticate
The user could be either establish based on USER env variable or overriden through a command line argument:
./pazuzu -r http://192.168.99.100:8080/api --user jdoe list --authenticate
Afterwards the user is going to be prompt for the password after the first authentication the password could be stored in keyring as a extension.
Finally we need to decide if we are going to store the tokens between application calls in some application specific location similary as the zign does.