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

[v9] Add endpoint to webapi to generate DB join token (#10914) #11256

Merged
merged 4 commits into from
Mar 23, 2022

Conversation

mcbattirola
Copy link
Contributor

backport of #10914

Add endpoint to generate join tokens with any roles

* Add endpoint to generate join tokens with any roles
@codingllama codingllama changed the title [v9] Matheus/v9/simplify manual db join [v9] Add endpoint to webapi to generate DB join token (#10914) Mar 18, 2022
@russjones russjones added the cloud Cloud label Mar 18, 2022
func (h *Handler) createTokenHandle(w http.ResponseWriter, r *http.Request, params httprouter.Params, ctx *SessionContext) (interface{}, error) {
var req createTokenRequest
if err := httplib.ReadJSON(r, &req); err != nil {
log.WithError(err).Error("error reading body")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same comment as in the other backport, these errors should be logged by the caller.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, removed on 8679f54

@mcbattirola mcbattirola enabled auto-merge (squash) March 23, 2022 13:49
@mcbattirola mcbattirola merged commit f9f81e2 into branch/v9 Mar 23, 2022
@mcbattirola mcbattirola deleted the matheus/v9/simplify-manual-db-join branch March 23, 2022 14:14
@webvictim webvictim mentioned this pull request Apr 19, 2022
@webvictim webvictim mentioned this pull request Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cloud Cloud
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants