@@ -14,7 +14,7 @@ type GitpodServerMethodType =
14
14
| keyof Omit < GitpodServer , "dispose" | "setClient" >
15
15
| typeof accessCodeSyncStorage
16
16
| typeof accessHeadlessLogs ;
17
- type GroupKey = "default" | "startWorkspace" | "createWorkspace" | "phoneVerification" | "sendHeartBeat" ;
17
+ type GroupKey = "default" | "startWorkspace" | "createWorkspace" | "phoneVerification" | "sendHeartBeat" | "getToken" ;
18
18
type GroupsConfig = {
19
19
[ key : string ] : {
20
20
points : number ;
@@ -57,7 +57,7 @@ const defaultFunctions: FunctionsConfig = {
57
57
deleteOrgAuthProvider : { group : "default" , points : 1 } ,
58
58
getConfiguration : { group : "default" , points : 1 } ,
59
59
getGitpodTokenScopes : { group : "default" , points : 1 } ,
60
- getToken : { group : "default " , points : 1 } ,
60
+ getToken : { group : "getToken " , points : 1 } ,
61
61
deleteAccount : { group : "default" , points : 1 } ,
62
62
getClientRegion : { group : "default" , points : 1 } ,
63
63
getWorkspaces : { group : "default" , points : 1 } ,
@@ -207,6 +207,10 @@ function getConfig(config: RateLimiterConfig): RateLimiterConfig {
207
207
points : 200 , // 200 calls per user, per connection, per minute
208
208
durationsSec : 60 ,
209
209
} ,
210
+ getToken : {
211
+ points : 200 , // 200 calls per user, per connection, per minute
212
+ durationsSec : 60 ,
213
+ } ,
210
214
startWorkspace : {
211
215
points : 3 , // 3 workspace starts per user per 10s
212
216
durationsSec : 10 ,
0 commit comments