Package microsoftonline implements the OAuth2 protocol for authenticating users through microsoftonline. This package can be used as a reference implementation of an OAuth2 provider for Goth. To use this package, your application need to be registered in [Application Registration Portal](https://apps.dev.microsoft.com/)
Provider is the implementation of `goth.Provider` for accessing microsoftonline.
New creates a new microsoftonline provider, and sets up important connection details. You should always call `microsoftonline.New` to get a new Provider. Never try to create one manually.
BeginAuth asks MicrosoftOnline for an authentication end-point.
Client is HTTP client to be used in all fetch operations.
Debug is a no-op for the facebook package.
FetchUser will go to MicrosoftOnline and access basic information about the user.
Name is the name used to retrieve this provider later.
RefreshToken get new access token based on the refresh token
RefreshTokenAvailable refresh token is provided by auth provider or not not available for microsoft online as session size hit the limit of max cookie size
SetName is to update the name of the provider (needed in case of multiple providers of 1 type)
UnmarshalSession wil unmarshal a JSON string into a session.
Session is the implementation of `goth.Session` for accessing microsoftonline. Refresh token not available for microsoft online: session size hit the limit of max cookie size
Authorize the session with Facebook and return the access token to be stored for future use.
GetAuthURL will return the URL set by calling the `BeginAuth` function on the Facebook provider.
Marshal the session into a string