Skip to content

Commit

Permalink
enable custom Azure endpoints for Government Cloud Services customers
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Lane committed Apr 1, 2022
1 parent 2ebcd70 commit 56a4c44
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions connector/microsoft/microsoft.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ const (

// Config holds configuration options for microsoft logins.
type Config struct {
ApiURL string `json:"apiURL"`
GraphURL string `json:"graphURL"`
ClientID string `json:"clientID"`
ClientSecret string `json:"clientSecret"`
RedirectURI string `json:"redirectURI"`
Expand All @@ -62,8 +64,8 @@ type Config struct {
// Open returns a strategy for logging in through Microsoft.
func (c *Config) Open(id string, logger log.Logger) (connector.Connector, error) {
m := microsoftConnector{
apiURL: "https://login.microsoftonline.com",
graphURL: "https://graph.microsoft.com",
apiURL: c.ApiURL,
graphURL: c.GraphURL,
redirectURI: c.RedirectURI,
clientID: c.ClientID,
clientSecret: c.ClientSecret,
Expand Down

0 comments on commit 56a4c44

Please sign in to comment.