-
Notifications
You must be signed in to change notification settings - Fork 67
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 make request to fn-server that require authenticated header? #311
Comments
Hey - great question! Currently the Fn CLI and go sdk only support bearer-tokens for the default provider out of the box - Supporting basic auth sounds like a good idea - I think this should be in the default provider (as an alternative to tokens. You should be able to do this by updating the default Provider: https://github.com/fnproject/fn_go/tree/master/provider/defaultprovider - e.g. by accepting new config parameters (user/password?) for basic auth as an alternative to token. |
I've put a basic idea together - would this work for you? |
Thank you @zootalures It's working by adding "token" to my context I think we should update the context documentation to mention this cool option. |
Awesome, glad it worked out, I’ll look at the docs asap |
Hi there, I added a simple authentication for my fn-servers, but I am not sure how to manage these fn-server from fn-cli. Can we configure request headers to the
context
?Thanks.
The text was updated successfully, but these errors were encountered: