-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
nsqd: ability to configure auth endpoint path #1336
Comments
seems reasonable to me, would you like to submit a PR? |
@mreiferson sadly I don't know GO at all, so it might be hard for me to set up the dev environment and do that small change in a correct way. So we should check if the value entered in that parameter contains The second option would be to add |
Hi @Misiu setting the so, this line nsq/internal/auth/authorizations.go Line 108 in c164c77
could be changed like, to keep it backward compatible. var endpoint string
if strings.HasPrefix(authd, "http") {
endpoint = fmt.Sprintf("%s?%s", authd, v.Encode())
} else {
endpoint = fmt.Sprintf("http://%s/auth?%s", authd, v.Encode())
} |
@tufanbarisyildirim sure, feel free to open a PR, thanks! |
Hi there,
Currently when using
-auth-http-address=host:port
the endpoint is hardcoded to/auth
nsq/internal/auth/authorizations.go
Line 108 in c164c77
I have an identity server in my solution that is already using this endpoint. I'd like to be able to customize the URL, for example, I'd like to change it from
/auth
to/nsq/auth
.Also, I noticed that the docs don't describe the
common_name
parameter that can be used with auth.The text was updated successfully, but these errors were encountered: