Skip to content

Commit 31a2088

Browse files
MikelRevyaron2
andauthored
Updated sqlserver auth to utilize default scope. (#3698)
Co-authored-by: Yaron Schneider <[email protected]>
1 parent 70c9972 commit 31a2088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/authentication/sqlserver/metadata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (m *SQLServerAuthMetadata) GetConnector(setDatabase bool) (*mssql.Connector
9696
conn, err := mssql.NewSecurityTokenConnector(config, func(ctx context.Context) (string, error) {
9797
at, err := tokenCred.GetToken(ctx, policy.TokenRequestOptions{
9898
Scopes: []string{
99-
m.azureEnv.Cloud.Services[azure.ServiceAzureSQL].Audience,
99+
m.azureEnv.Cloud.Services[azure.ServiceAzureSQL].Audience + "/.default",
100100
},
101101
})
102102
if err != nil {

0 commit comments

Comments
 (0)