Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get auth token ? #2

Open
debianmaster opened this issue Oct 16, 2018 · 5 comments
Open

how to get auth token ? #2

debianmaster opened this issue Oct 16, 2018 · 5 comments

Comments

@debianmaster
Copy link

debianmaster commented Oct 16, 2018

i did

$ ISTIO=$(minikube ip):$(kubectl get svc knative-ingressgateway -n istio-system -o 'jsonpath={.spec.ports[?(@.port==80)].nodePort}')
$ go run ./cmd/kwsk-server/main.go --port 8080 --istio $ISTIO
2018/10/16 23:35:09 Serving kwsk at http://127.0.0.1:8080

Im getting this.

$ wsk action list --insecure
error: Unable to obtain the list of actions for namespace 'default': The connection failed, or timed out. (HTTP status code 401)
Run 'wsk --help' for usage.
@aviweit
Copy link

aviweit commented Dec 24, 2018

Hi,

I followed README instructions, invoked:

curl http://127.0.0.1:8080/api/v1/namespaces/foo/actions
and I get: {"code":401,"message":"unauthenticated for invalid credentials"}
Thanks.

@rabbah
Copy link

rabbah commented Dec 24, 2018

Keys have to be added to the interface - if this is a standard openwhisk deployment, you can populate the couchdb instance with keys. There is a tool for doing this called wskadmin that may be useful for this https://github.com/apache/incubator-openwhisk/tree/master/tools/admin.

@aviweit
Copy link

aviweit commented Dec 27, 2018

It works for me now after passing AUTH to wsk CLI (e.g. via ~/.wskprops). I can create and invoke the hello action. I am using latest wsk CLI.

Perhaps README file can be updated with the possible need of adding AUTH. The issue can be closed from my side.

@Zee-Khan
Copy link

Is there identity management with this setup? Is there a default AUTH?

@bbrowning
Copy link
Member

Just as a note, we haven't maintained this kwsk experiment for quite some time now. It's not officially part of Apache OpenWhisk. But no, I don't think there was any specific identity management here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants