mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 17:15:56 +00:00
remove settings
This commit is contained in:
parent
1555746ff1
commit
c2d51a2257
1 changed files with 6 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue