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

BasicAuthMiddleware: Add option to ignore authentication for a particular URI #3037

Merged
merged 2 commits into from
Sep 12, 2019

Conversation

yeastplume
Copy link
Member

Workaround to support:

mimblewimble/grin-wallet#183

In this case, the Wallet's owner API and Foreign API are being run on the same port, which means that authentication and the owner API secret need to be shared with everyone using the owner API. This change adds an option to specify a particular uri for the authentication to ignore, allowing the wallet to run 2 JSON-RPC endpoint routes without requiring authentication for one of them.

Don't think this opens any holes as this checks for the entire path from the root, but would appreciate a once-over to confirm.

Copy link
Member

@antiochp antiochp left a comment

Choose a reason for hiding this comment

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

Looks good to me (and discussed on keybase).

👍

@yeastplume yeastplume merged commit 95004a4 into mimblewimble:master Sep 12, 2019
antiochp pushed a commit to antiochp/grin that referenced this pull request Sep 17, 2019
…ular URI (mimblewimble#3037)

* api::BasicAuthMiddleware: Add option to ignore authentication for a particular URI

* rustfmt
antiochp pushed a commit to antiochp/grin that referenced this pull request Sep 19, 2019
…ular URI (mimblewimble#3037)

* api::BasicAuthMiddleware: Add option to ignore authentication for a particular URI

* rustfmt
@yeastplume yeastplume deleted the auth_middleware branch January 6, 2020 10:05
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