-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[dashboard] Use public-api to CreateTeams #14232
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
Conversation
started the job as gitpod-build-mp-papi-create-teams-dashboard.1 because the annotations in the pull request description changed |
/werft run 👍 started the job as gitpod-build-mp-papi-create-teams-dashboard.2 |
e538ed1
to
77cb88e
Compare
/werft run with-clean-slate-deployment=true with-preview=true 👍 started the job as gitpod-build-mp-papi-create-teams-dashboard.5 |
/werft run with-clean-slate-deployment=true with-preview=true 👍 started the job as gitpod-build-mp-papi-create-teams-dashboard.6 |
ed3b89b
to
43b063a
Compare
d82144b
to
4db10ad
Compare
4db10ad
to
75edf0e
Compare
const newToken = await getGitpodService().server.generateNewGitpodToken({ | ||
type: 1, | ||
scopes: [ | ||
"function:getGitpodTokenScopes", | ||
"function:getWorkspace", | ||
"function:getWorkspaces", | ||
"function:createTeam", | ||
"function:joinTeam", | ||
"function:getTeamMembers", | ||
"function:getGenericInvite", | ||
"function:listenForWorkspaceInstanceUpdates", | ||
"resource:default", |
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.
Why is it necessary to generate a new token here? Won't the user always have a suitable token when performing this action?
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.
They have a cookie based session which is not compatible with the AccessToken based auth on Public API. I agree this is not great, or pretty, but it's a temporary solution until we have first class Access Tokens.
75edf0e
to
1c03bb2
Compare
Thanks for the swift review @andrew-farries! |
/werft run 👍 started the job as gitpod-build-mp-papi-create-teams-dashboard.14 |
started the job as gitpod-build-mp-papi-create-teams-dashboard.13 because the annotations in the pull request description changed |
Description
Related Issue(s)
The feature is enabled behind a feature flag.
How to test
api.<domain>
Release Notes
Documentation
Werft options:
If enabled this will build
install/preview
Valid options are
all
,workspace
,webapp
,ide