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

Documentation on authentication missing #255

Open
kluen opened this issue Dec 30, 2022 · 7 comments
Open

Documentation on authentication missing #255

kluen opened this issue Dec 30, 2022 · 7 comments

Comments

@kluen
Copy link
Contributor

kluen commented Dec 30, 2022

In order to use authentication for URLs configured in resolvers, one needs to create a config file. By looking through the code1 I found that https://github.com/dirs-dev/directories-jvm is used and that on my macOS machine I had to create a ~/Library/Application Support/build.bleep.bleep/config.yaml with the following contents:

authentications:
  <some-resolver-url>:
    user: <the-user>
    password: <the-password>

compileServerMode: 
  mode: shared

It would be great if this was documented on the website to lower the barrier for people trying out Bleep.

Footnotes

  1. Btw. I found it relatively easy to do, thanks for the clean code base!

@oyvindberg
Copy link
Owner

Absolutely! linking this to #243 so I won't forget :)

@olivierdeckers
Copy link

olivierdeckers commented Jul 31, 2023

The config file should now be put in ~/Library/Application Support/build.bleep/config.yaml

@oyvindberg
Copy link
Owner

@olivierdeckers hmm, WDYM shouldn't be put there?

I notice that the instructions at the top here have the old path pattern for the config file @ngbinh, you can run bleep config file to see the expected path on your system. might that have caused the problems you were seeing in #347 ?

@ngbinh
Copy link

ngbinh commented Aug 1, 2023

@oyvindberg that's a good point. I will try it again today. But to make sure I get it right, do you have a fully working configuration? I am not sure if I should put the https part in the url and should I use double quotes on the user and password.

@oyvindberg
Copy link
Owner

authentications:
  https://artifactory.flaff.com:
    user: username
    password: password

@olivierdeckers
Copy link

I meant now instead of not, sorry for the unfortunate typo ;)

@oyvindberg
Copy link
Owner

Another thing about this authentication: it's been my intention that people not edit this config file themselves, but use commands bleep config ... to change it. If any of you want an easy entrance into contributing this is a super place to start

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

4 participants