Skip to content

Commit bae3baa

Browse files
committed
Rename basic authentication to password
1 parent 2595156 commit bae3baa

12 files changed

+15
-15
lines changed

coderd/database/dump.sql

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/migrations/000001_base.up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
-- https://github.com/coder/m/blob/47b6fc383347b9f9fab424d829c482defd3e1fe2/product/coder/pkg/database/dump.sql
66

77
CREATE TYPE login_type AS ENUM (
8-
'basic',
8+
'password',
99
'github'
1010
);
1111

coderd/database/models.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/httpmw/apikey.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func ExtractAPIKey(db database.Store, oauth *OAuth2Configs) func(http.Handler) h
9999
// Tracks if the API key has properties updated!
100100
changed := false
101101

102-
if key.LoginType != database.LoginTypeBasic {
102+
if key.LoginType != database.LoginTypePassword {
103103
// Check if the OAuth token is expired!
104104
if key.OAuthExpiry.Before(now) && !key.OAuthExpiry.IsZero() {
105105
var oauthConfig OAuth2Config

coderd/httpmw/organizationparam_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func TestOrganizationParam(t *testing.T) {
4141
ID: userID,
4242
Email: "testaccount@coder.com",
4343
Name: "example",
44-
LoginType: database.LoginTypeBasic,
44+
LoginType: database.LoginTypePassword,
4545
HashedPassword: hashed[:],
4646
Username: username,
4747
CreatedAt: database.Now(),

coderd/httpmw/templateparam_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func TestTemplateParam(t *testing.T) {
4040
ID: userID,
4141
Email: "testaccount@coder.com",
4242
Name: "example",
43-
LoginType: database.LoginTypeBasic,
43+
LoginType: database.LoginTypePassword,
4444
HashedPassword: hashed[:],
4545
Username: username,
4646
CreatedAt: database.Now(),

coderd/httpmw/templateversionparam_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func TestTemplateVersionParam(t *testing.T) {
4040
ID: userID,
4141
Email: "testaccount@coder.com",
4242
Name: "example",
43-
LoginType: database.LoginTypeBasic,
43+
LoginType: database.LoginTypePassword,
4444
HashedPassword: hashed[:],
4545
Username: username,
4646
CreatedAt: database.Now(),

coderd/httpmw/workspaceagentparam_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func TestWorkspaceAgentParam(t *testing.T) {
4040
ID: userID,
4141
Email: "testaccount@coder.com",
4242
Name: "example",
43-
LoginType: database.LoginTypeBasic,
43+
LoginType: database.LoginTypePassword,
4444
HashedPassword: hashed[:],
4545
Username: username,
4646
CreatedAt: database.Now(),

coderd/httpmw/workspacebuildparam_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func TestWorkspaceBuildParam(t *testing.T) {
4040
ID: userID,
4141
Email: "testaccount@coder.com",
4242
Name: "example",
43-
LoginType: database.LoginTypeBasic,
43+
LoginType: database.LoginTypePassword,
4444
HashedPassword: hashed[:],
4545
Username: username,
4646
CreatedAt: database.Now(),

coderd/httpmw/workspaceparam_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func TestWorkspaceParam(t *testing.T) {
4040
ID: userID,
4141
Email: "testaccount@coder.com",
4242
Name: "example",
43-
LoginType: database.LoginTypeBasic,
43+
LoginType: database.LoginTypePassword,
4444
HashedPassword: hashed[:],
4545
Username: username,
4646
CreatedAt: database.Now(),

0 commit comments

Comments
 (0)