-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for GCC and other sovereign clouds (#1928)
* feat: add support for configuring the base URL in the graph client * feat: add base-url attribute to Msal2Provider base-url specifies a base url for the graph client config. It is optional and defaults to https://graph.microsoft.com. With this attribute, you can pass in any of the GCC and national clouds urls * refactor: use GraphEndpoint type instead of string * refactor: move validating base URL to utility function * fix: use new URL().origin to validate the base URL * feat: set baseURL when you initialize with clientID * feat: update the types on the declared variable * fix: cast string to GraphEndpoint type in validation * feat: update MsalProvider to use base-url property * feat: update the ElectronProvider to set a baseURL You can set a baseURL when calling the electron provider. Additional refactors to fix tsc errors * feat: add base url to Sharepoint provider * feat: add base-url attribute to TeamsMsal2Provider Since it uses Msal2Provider, all we do is pass the base URL where Msal2Provider is called * feat: add base-url attribute to TeamsMsalProvider Since it uses MsalProvider, all we do is pass the base URL where MsalProvider is called * feat: add base-url attribute to TeamsFxProvider The baseUrl is passed during initialization. The default is already set to MICROSOFT_GRAPH_DEFAULT_ENDPOINT * feat: change to validating the baseUrl before initializing the client * refactor: set the baseURL default value in constractor * refactor: set the baseURL default value in constructor * feat: add base-url to the baseProvider * refactor: remove re-declaration of property in base class * fix: validate base URL string in the IProvider * fix: do the validation when setting the baseURL * refactor/docs: use one check to get all accounts and document the exported types * fix: remove duplicate import * fix: set licence text on all files * fix: updaet the memberof value of the base provider Co-authored-by: Gavin Barron <[email protected]> Co-authored-by: Gavin Barron <[email protected]>
- Loading branch information
Showing
23 changed files
with
259 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.