Skip to content

Commit

Permalink
Aligned scope param default value with oauth spec
Browse files Browse the repository at this point in the history
The scope params default value is separated by spaces instead of commas as defined by the oauth spec
  • Loading branch information
jgadsden authored Jul 3, 2024
2 parents 334a54b + 42e7425 commit e567f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion td.server/src/providers/gitlab.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const getGitlabUrl = () => {
* @returns {String}
*/
const getOauthRedirectUrl = () => {
const scope = env.get().config.GITLAB_SCOPE || 'read_user,read_repository,write_repository,profile';
const scope = env.get().config.GITLAB_SCOPE || 'read_user read_repository write_repository profile';
return `${getGitlabUrl()}/oauth/authorize?scope=${scope}&redirect_uri=${env.get().config.GITLAB_REDIRECT_URI}&response_type=code&client_id=${env.get().config.GITLAB_CLIENT_ID}`;
};

Expand Down

0 comments on commit e567f87

Please sign in to comment.