You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
0 commit comments