Skip to content

Commit

Permalink
fix(azure_event_hubs): default scope (grafana#4078)
Browse files Browse the repository at this point in the history
  • Loading branch information
akselleirv committed Jun 9, 2023
1 parent e71b440 commit 52fd646
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Main (unreleased)
could lead to propagating issues downstream to other components which expect
the export to be non-empty. (@rfratto)

- Fix oauth default scope in `loki.source.azure_event_hubs`. (@akselleirv)

### Other changes

- Add logging to failed requests in `remote.http`. (@rfratto)
Expand Down
2 changes: 1 addition & 1 deletion component/loki/source/azure_event_hubs/azure_event_hubs.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (a *Arguments) Convert() (kt.Config, error) {
if err != nil {
return kt.Config{}, fmt.Errorf("unable to extract host from fully qualified namespace: %w", err)
}
a.Authentication.Scopes = []string{fmt.Sprintf("https://%s", host)}
a.Authentication.Scopes = []string{fmt.Sprintf("https://%s/.default", host)}
}

cfg.KafkaConfig.Authentication = kt.Authentication{
Expand Down

0 comments on commit 52fd646

Please sign in to comment.