-
Notifications
You must be signed in to change notification settings - Fork 16
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
Request: Add authentication for client side #34
Comments
Hey there! That'd be great to have, but the problem is that I can't provide you much guidance as I'm not super familiar with the codebase myself (I did very little work on it, since I became nREPL and related project's maintainer). There's not a lot of code, though, so I assume that if you're determined enough you'll figure things out pretty quickly. |
For basic authentication you would have to add a I'm not sure what would be the preferred way to pass the user and password however. One way could be to pass them as environment variables using the environ library for example. |
I imagine something like this could be done:
|
Could you perhaps try to pass the username and password in the connection url? F.ex. lein repl :connect https://username:password@example.com/repl or (nrepl/url-connect "https://username:password@example.com/repl") This might work already without any changes to the code. |
@PabloReszczynski Did you get a chance to check passing the username and password in the url? Thanks! |
I'm having some issues.
I know this is the old version of drawbridge, but I don't know how to tell leiningen to use the newest one |
I don't think Can you try to add |
This is the error now:
This is with both lein and requiring nrepl 0.5.0 |
Which version of leiningen are you using? |
2.8.1 but the problem persist when using CIDER |
I've retested this, and with leiningen 2.8.1 I'm not sure where the Can you perhaps retest with lein 2.8.3 and the |
In case someone else stumbles over this issue: |
First of all, thanks for this awesome project!
I'm currently developing a debugging feature (nrepl-in instead of ssh-in) for a project I'm working in.
For obvious security reasons, I'm setting authentication for nrepl on the server side (using ring-basic-authentication), but currently the drawbridge client doesn't contain authentication options.
With some guidance I could implement this myself.
Thanks in advance
The text was updated successfully, but these errors were encountered: