Skip to content

Commit

Permalink
add auxiliary tenants for multi-tenant scenario (Azure#15123)
Browse files Browse the repository at this point in the history
  • Loading branch information
catalinaperalta authored and vindicatesociety committed Sep 18, 2021
1 parent 0371001 commit 33bbc04
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdk/azcore/credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ import (

// AuthenticationOptions contains various options used to create a credential policy.
type AuthenticationOptions struct {
// Options contains the TokenRequestOptions that includes a scopes field which contains
// TokenRequest is a TokenRequestOptions that includes a scopes field which contains
// the list of OAuth2 authentication scopes used when requesting a token.
// This field is ignored for other forms of authentication (e.g. shared key).
TokenRequest TokenRequestOptions
// AuxiliaryTenants contains a list of additional tenant IDs to be used to authenticate
// in cross-tenant applications.
AuxiliaryTenants []string
}

// Credential represents any credential type.
Expand Down

0 comments on commit 33bbc04

Please sign in to comment.