microsoft

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderName = "microsoft"

ProviderName identifica a este proveedor en las rutas y en el almacen de estado. Un consumidor lo usa con auth.PathOAuthStart / PathOAuthCallback.

Variables

This section is empty.

Functions

This section is empty.

Types

type MicrosoftProvider

type MicrosoftProvider struct {
	ClientID     string
	ClientSecret string
	RedirectURL  string
}

func (*MicrosoftProvider) AuthCodeURL

func (p *MicrosoftProvider) AuthCodeURL(state string) string

func (*MicrosoftProvider) ExchangeCode

func (p *MicrosoftProvider) ExchangeCode(code string) (auth.OAuthToken, error)

func (*MicrosoftProvider) GetUserInfo

func (p *MicrosoftProvider) GetUserInfo(token auth.OAuthToken) (auth.OAuthUserInfo, error)

func (*MicrosoftProvider) Name

func (p *MicrosoftProvider) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL