question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I see that you include authentication, and upon passing the following object to the Node Git Server constructor, my requests both with and without a password are not requiring the password.

Here’s what my object looks like. Let me know if I am just doing it wrong:

const Options = {
    autoCreate: false,
    repos: {
      reponame: {
        username: 'myUsername',
        password: 'myPassword'
      }
    }
  }

  const Git = new Server('./repos', Options)

I also have listeners for a few events currently.

Git.on('push', (push) => {
    console.log('push ' + push.repo + '/' + push.commit
        + ' (' + push.branch + ')'
    );
    push.accept();
  })

  Git.on('fetch', (fetch) => {
    console.log(fetch)
    console.log('fetch ' + fetch.commit);
    fetch.accept();
  })

I’ve also got the following to actually start this…

Git.listen(Port, () => {
    app.log.info('Git Services are running.')
  })

What am I doing wrong, here? I see where it should be telling me I am unauthorized, however, it does not do so.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:26 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
plunkettscottcommented, Sep 17, 2017

@gabrielcsapo It sounds like this will definitely make authentication so much easier. Thanks for your hard work on this!

1reaction
plunkettscottcommented, Sep 17, 2017

I’ll try to think about names.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authentication - Wikipedia
Authentication (from Greek: αὐθεντικός authentikos, "real, genuine", from αὐθέντης authentes, "author") is the act of proving an assertion, such as the ...
Read more >
Authentication: Definition, Types, Uses & More | StrongDM
Authentication is the process of verifying a user or device before allowing access to a system or resources. In other words, authentication ......
Read more >
What is Authentication? Definition and uses - Auth0
Authentication is a term that refers to the process of proving that some fact or some document is genuine. In computer science, this...
Read more >
What is Authentication? Definition of ... - The Economic Times
Definition: Authentication is the process of recognizing a user's identity. It is the mechanism of associating an incoming request with a set of...
Read more >
Understanding Authentication, Authorization, and Encryption
Authentication · Authentication is used by a server when the server needs to know exactly who is accessing their information or site. ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found