Error: no Authorizer could be configured, please check your configuration
Closed this issue · 0 comments
jorgeferreira008 commented
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