From c2d51a2257326bd2ba2e93f0c38df9c89023c623 Mon Sep 17 00:00:00 2001 From: Samir Patel <48686912+54mir@users.noreply.github.com> Date: Fri, 17 Dec 2021 10:00:21 -0600 Subject: [PATCH] remove settings --- authn/authenticate_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/authn/authenticate_test.go b/authn/authenticate_test.go index 0487e7749..1fd5306fb 100644 --- a/authn/authenticate_test.go +++ b/authn/authenticate_test.go @@ -18,13 +18,13 @@ func TestAuth(t *testing.T) { settings := server.Config{} settings.Auth.Enable = true settings.Auth.ClientId = "e9088663-eb08-41d7-8f65-efb5f54bbb71" - settings.Auth.ClientSecret = "***REMOVED***" + settings.Auth.ClientSecret = "asdf~asdf-asdf" settings.Auth.AuthorizeURL = "https://login.microsoftonline.com/4a137d66-d161-4ae4-b1e6-07e9920874b8/oauth2/v2.0/authorize" settings.Auth.TokenURL = "https://login.microsoftonline.com/4a137d66-d161-4ae4-b1e6-07e9920874b8/oauth2/v2.0/token" settings.Auth.GroupEndpointURL = "https://graph.microsoft.com/v1.0/me/transitiveMemberOf/microsoft.graph.group?$count=true" settings.Auth.Scopes = []string{"https://graph.microsoft.com/.default", "offline_access"} - settings.Auth.HashKey = "c6e3c44be7b05f5d95c2b31c915b81ba4722b92696cc9d04296a45573fe824f7" - settings.Auth.BlockKey = "98995f0530eeba96da1d0a04311073c0abb7b6abbfb0f5f4ef3629527ff88428" + settings.Auth.HashKey = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl" + settings.Auth.BlockKey = "abcdefghijklmnopqrstuvwxyz1073c0abb7b6abbfb0f5f4ef3629527ff88428" a, err := authn.NewAuth( logger.NewStandardLogger(os.Stdout), @@ -34,9 +34,9 @@ func TestAuth(t *testing.T) { "https://login.microsoftonline.com/4a137d66-d161-4ae4-b1e6-07e9920874b8/oauth2/v2.0/token", "https://graph.microsoft.com/v1.0/me/transitiveMemberOf/microsoft.graph.group?$count=true", "e9088663-eb08-41d7-8f65-efb5f54bbb71", - "***REMOVED***", - "c6e3c44be7b05f5d95c2b31c915b81ba4722b92696cc9d04296a45573fe824f7", - "98995f0530eeba96da1d0a04311073c0abb7b6abbfb0f5f4ef3629527ff88428", + "asdf~asdf-asdf", + "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl", + "abcdefghijklmnopqrstuvwxyz1073c0abb7b6abbfb0f5f4ef3629527ff88428", ) if err != nil { t.Errorf("building auth object%s", err)