File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
components/server/src/scm Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export class ScmService {
37
37
) { }
38
38
39
39
/**
40
+ * `getToken` allows clients to retrieve SCM tokens based on the specified host.
40
41
*
41
42
* @param userId subject and current user.
42
43
* @param query specifies the `host` of the auth provider to search for a token.
@@ -66,7 +67,14 @@ export class ScmService {
66
67
}
67
68
68
69
/**
69
- * `guessTokenScopes` requires the same permissions as `getToken`.
70
+ * `guessTokenScopes` allows clients to retrieve scopes that would be necessary for a specified
71
+ * git operation on a specified repository.
72
+ *
73
+ * This method requires the same permissions as `getToken`. If no token is found, this will
74
+ * return the default scopes for the provider of the specified host.
75
+ *
76
+ * @throws 404/NOT_FOUND if the user is not found.
77
+ * @throws 404/NOT_FOUND if the provider is not found.
70
78
*/
71
79
public async guessTokenScopes (
72
80
userId : string ,
You can’t perform that action at this time.
0 commit comments