manicminer/hamilton

Error: no Authorizer could be configured, please check your configuration

Closed this issue · 0 comments

Hi, Why im getting this error with the following code:

`ctx := context.Background()
env := environments.AzurePublic()

credentials := auth.Credentials{
Environment: *env,
TenantID: tenantId,
ClientID: clientId,
ClientSecret: clientSecret,

EnableAuthenticatingUsingClientSecret: true,
}

authorizer, err := auth.NewAuthorizerFromCredentials(ctx, credentials, env.MicrosoftGraph)
if err != nil {
log.Fatal(err)
}
`

Error: no Authorizer could be configured, please check your configuration