Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MicrosoftAdapter ¶
type MicrosoftAdapter struct {
// contains filtered or unexported fields
}
MicrosoftAdapter is an adapter for Microsoft OAuth2.
func NewMicrosoftAdapter ¶
func NewMicrosoftAdapter(tenantID, clientID, clientSecret, redirectURL string) *MicrosoftAdapter
NewMicrosoftAdapter creates a new MicrosoftAdapter with the given client configuration.
func (*MicrosoftAdapter) ExchangeCodeForToken ¶
func (m *MicrosoftAdapter) ExchangeCodeForToken(code string) (*model.TokenResponse, error)
ExchangeCodeForToken exchanges an authorization code for tokens.
func (*MicrosoftAdapter) GetAuthURL ¶
func (m *MicrosoftAdapter) GetAuthURL(state string) string
GetAuthURL generates the Microsoft OAuth2 authorization URL.
func (*MicrosoftAdapter) GetRedirectURL ¶
func (m *MicrosoftAdapter) GetRedirectURL() string
GetRedirectURL returns the redirect URL configured for the Microsoft OAuth2 provider.
func (*MicrosoftAdapter) GetRefreshToken ¶
func (m *MicrosoftAdapter) GetRefreshToken(refreshToken string) (*model.TokenResponse, error)
Get Refresh Token
Click to show internal directories.
Click to hide internal directories.