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

Add cookie authentication option for rpc #68

Merged
merged 3 commits into from
Feb 12, 2022

Conversation

rajarshimaitra
Copy link
Contributor

Description

Fixes #67

This PR adds an optional cookie arg to pass on cookie file if user needs to use that instead of basic user:password based authentication.

bitcoin core will only generate a .cookie file if rpc username passwords are not set in bitcoin.conf. Thus cookie file doesn't have a default. User should only provide it if they know a cookie file exists, or else "File not found" error is returned.

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

New Features:

  • I've added tests for the new feature
  • I've added docs for the new feature
  • I've updated CHANGELOG.md

@rajarshimaitra rajarshimaitra force-pushed the cookie-auth branch 3 times, most recently from b73f92d to c346915 Compare January 9, 2022 18:45
@notmandatory notmandatory added good first issue Good for newcomers and removed good first issue Good for newcomers labels Feb 1, 2022
@rajarshimaitra
Copy link
Contributor Author

Rebased on master.. Needs review..

Copy link
Member

@notmandatory notmandatory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 82f7ff2.

But needs another rebase. After than I'll give it a final test and should be good to merge.

@rajarshimaitra
Copy link
Contributor Author

Rebased..

Copy link
Member

@notmandatory notmandatory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 1ab2b0f

@notmandatory notmandatory merged commit 52ef313 into bitcoindevkit:master Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add Cookie authetication
2 participants