-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Authenticate to "login" endpoint for non-existent mount path bug #13162
Changes from 5 commits
997026e
c2b0cef
7c3aaba
c7c5991
03cbbc8
4c7f605
9a1e0e0
ce0aabc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,7 +126,7 @@ func (c *Core) fetchACLTokenEntryAndEntity(ctx context.Context, req *logical.Req | |
|
||
// Ensure there is a client token | ||
if req.ClientToken == "" { | ||
return nil, nil, nil, nil, &logical.StatusBadRequest{Err: "missing client token"} | ||
return nil, nil, nil, nil, logical.ErrPermissionDenied | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm still of the opinion that the generic There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm I think I'm also in favor of keeping the more descriptive There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ( retracting my comment around the PR not addressing the issue, after going through slack conversation ) |
||
} | ||
|
||
if c.tokenStore == nil { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will remove the print statement. Was using it to debug