@@ -19,6 +19,7 @@ func TestGitlabDefaults(t *testing.T) {
1919AuthURL :"https://gitlab.com/oauth/authorize" ,
2020TokenURL :"https://gitlab.com/oauth/token" ,
2121ValidateURL :"https://gitlab.com/oauth/token/info" ,
22+ RevokeURL :"https://gitlab.com/oauth/revoke" ,
2223DisplayName :"GitLab" ,
2324DisplayIcon :"/icon/gitlab.svg" ,
2425Regex :`^(https?://)?gitlab\.com(/.*)?$` ,
@@ -79,6 +80,7 @@ func TestGitlabDefaults(t *testing.T) {
7980config .AuthURL = "https://gitlab.company.org/oauth/authorize?foo=bar"
8081config .ValidateURL = "https://gitlab.company.org/oauth/token/info"
8182config .TokenURL = "https://gitlab.company.org/oauth/token"
83+ config .RevokeURL = "https://gitlab.company.org/oauth/revoke"
8284config .Regex = `^(https?://)?gitlab\.company\.org(/.*)?$`
8385},
8486},
@@ -90,13 +92,15 @@ func TestGitlabDefaults(t *testing.T) {
9092AuthURL :"https://auth.com/auth" ,
9193ValidateURL :"https://validate.com/validate" ,
9294TokenURL :"https://token.com/token" ,
95+ RevokeURL :"https://token.com/revoke" ,
9396Regex :"random" ,
9497},
9598expected :cloud ,
9699mutateExpected :func (config * codersdk.ExternalAuthConfig ) {
97100config .AuthURL = "https://auth.com/auth"
98101config .ValidateURL = "https://validate.com/validate"
99102config .TokenURL = "https://token.com/token"
103+ config .RevokeURL = "https://token.com/revoke"
100104config .Regex = `random`
101105},
102106},