Skip to content

Conversation

biw
Copy link
Owner

@biw biw commented Mar 17, 2021

This modification adds an authHandler options to authenticate requests.

const nuts = Nuts({
  repository: "<repo name>",
  token: "<github token>",
  authHandler: function (req, version) {
    // Return whether the requesting user has permission to retrieve this release
  }
});

authHandler must return true/false or a promise resolving to true/false.

From GitbookIO/nuts#175

@biw biw changed the title Added authentication handler Authenticate requests Mar 17, 2021
idnistrian referenced this pull request in Hirecalibre/nuts-app Sep 6, 2023
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

Successfully merging this pull request may close these issues.

2 participants