-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
dev experienceAnything related to developing Gitpod itselfAnything related to developing Gitpod itselfmeta: never-staleThis issue can never become staleThis issue can never become staleteam: webappIssue belongs to the WebApp teamIssue belongs to the WebApp teamtype: improvementImproves an existing feature or existing codeImproves an existing feature or existing code
Description
Is your feature request related to a problem? Please describe
We currently have two protocol shapes that are very similar:
gitpod/components/gitpod-protocol/src/protocol.ts
Lines 1142 to 1175 in 4e33131
export interface AuthProviderInfo { | |
readonly authProviderId: string; | |
readonly authProviderType: string; | |
readonly host: string; | |
readonly ownerId?: string; | |
readonly verified: boolean; | |
readonly isReadonly?: boolean; | |
readonly hiddenOnDashboard?: boolean; | |
readonly loginContextMatcher?: string; | |
readonly disallowLogin?: boolean; | |
readonly icon?: string; | |
readonly description?: string; | |
readonly settingsUrl?: string; | |
readonly scopes?: string[]; | |
readonly requirements?: { | |
readonly default: string[]; | |
readonly publicRepo: string[]; | |
readonly privateRepo: string[]; | |
} | |
} | |
export interface AuthProviderEntry { | |
readonly id: string; | |
readonly type: AuthProviderEntry.Type; | |
readonly host: string; | |
readonly ownerId: string; | |
readonly status: AuthProviderEntry.Status; | |
readonly oauth: OAuth2Config; | |
/** A random string that is to change whenever oauth changes (enforced on DB level) */ | |
readonly oauthRevision?: string; | |
} |
AuthProviderInfo
vs AuthProviderEntry
:
authProviderId
vsid
authProviderType
vstype
host
👍ownerId
👍 (sometimes)verified = true
vsstatus = "verified"
- (usage concerns) vs (oauth config)
Describe the behaviour you'd like
It would be great to re-unify them. 🧹 ✨
Describe alternatives you've considered
Additional context
For more context, see Slack thread (internal)
Metadata
Metadata
Assignees
Labels
dev experienceAnything related to developing Gitpod itselfAnything related to developing Gitpod itselfmeta: never-staleThis issue can never become staleThis issue can never become staleteam: webappIssue belongs to the WebApp teamIssue belongs to the WebApp teamtype: improvementImproves an existing feature or existing codeImproves an existing feature or existing code
Type
Projects
Status
Done