Documentation ¶
Overview ¶
Package msalgo provides the Microsoft Authentication Library (MSAL) for the Go language.
Index ¶
- type AcquireTokenDeviceCodeParameters
- type AcquireTokenInteractiveParameters
- type AcquireTokenSilentParameters
- type AcquireTokenUsernamePasswordParameters
- type IAccount
- type IAuthenticationResult
- type PublicClientApplication
- func (pca *PublicClientApplication) AcquireTokenByDeviceCode(deviceCodeParameters *AcquireTokenDeviceCodeParameters) (IAuthenticationResult, error)
- func (pca *PublicClientApplication) AcquireTokenByUsernamePassword(usernamePasswordParameters *AcquireTokenUsernamePasswordParameters) (IAuthenticationResult, error)
- func (pca *PublicClientApplication) AcquireTokenInteractive(interactiveParams *AcquireTokenInteractiveParameters) (IAuthenticationResult, error)
- func (pca *PublicClientApplication) AcquireTokenSilent(silentParameters *AcquireTokenSilentParameters) (IAuthenticationResult, error)
- type PublicClientApplicationParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcquireTokenDeviceCodeParameters ¶
type AcquireTokenDeviceCodeParameters struct {
// contains filtered or unexported fields
}
AcquireTokenDeviceCodeParameters stuff
func CreateAcquireTokenDeviceCodeParameters ¶
func CreateAcquireTokenDeviceCodeParameters(scopes []string) *AcquireTokenDeviceCodeParameters
CreateAcquireTokenDeviceCodeParameters stuff
type AcquireTokenInteractiveParameters ¶
type AcquireTokenInteractiveParameters struct {
// contains filtered or unexported fields
}
AcquireTokenInteractiveParameters stuff
func CreateAcquireTokenInteractiveParameters ¶
func CreateAcquireTokenInteractiveParameters(scopes []string, username string, password string) *AcquireTokenInteractiveParameters
CreateAcquireTokenInteractiveParameters stuff
type AcquireTokenSilentParameters ¶
type AcquireTokenSilentParameters struct {
// contains filtered or unexported fields
}
AcquireTokenSilentParameters stuff
func CreateAcquireTokenSilentParameters ¶
func CreateAcquireTokenSilentParameters(scopes []string, username string, password string) *AcquireTokenSilentParameters
CreateAcquireTokenSilentParameters stuff
type AcquireTokenUsernamePasswordParameters ¶
type AcquireTokenUsernamePasswordParameters struct {
// contains filtered or unexported fields
}
AcquireTokenUsernamePasswordParameters stuff
func CreateAcquireTokenUsernamePasswordParameters ¶
func CreateAcquireTokenUsernamePasswordParameters(scopes []string, username string, password string) *AcquireTokenUsernamePasswordParameters
CreateAcquireTokenUsernamePasswordParameters stuff
func (*AcquireTokenUsernamePasswordParameters) GetPassword ¶
func (p *AcquireTokenUsernamePasswordParameters) GetPassword() string
func (*AcquireTokenUsernamePasswordParameters) GetUsername ¶
func (p *AcquireTokenUsernamePasswordParameters) GetUsername() string
func (*AcquireTokenUsernamePasswordParameters) SetPassword ¶
func (p *AcquireTokenUsernamePasswordParameters) SetPassword(password string)
SetPassword stuff
func (*AcquireTokenUsernamePasswordParameters) SetUsername ¶
func (p *AcquireTokenUsernamePasswordParameters) SetUsername(username string)
SetUsername stuff
type IAuthenticationResult ¶
type IAuthenticationResult interface {
GetAccessToken() string
}
AuthenticationResult contains the results of one token acquisition operation in PublicClientApplication or ConfidentialClientApplication. For details see https://aka.ms/msal-net-authenticationresult
type PublicClientApplication ¶
type PublicClientApplication struct {
// contains filtered or unexported fields
}
PublicClientApplication is used to acquire tokens in desktop or mobile applications (Desktop / UWP / Xamarin.iOS / Xamarin.Android). public client applications are not trusted to safely keep application secrets, and therefore they only access Web APIs in the name of the user only (they only support public client flows). For details see https://aka.ms/msal-net-client-applications
func CreatePublicClientApplication ¶
func CreatePublicClientApplication(pcaParameters *PublicClientApplicationParameters) (*PublicClientApplication, error)
CreatePublicClientApplication stuff
func (*PublicClientApplication) AcquireTokenByDeviceCode ¶
func (pca *PublicClientApplication) AcquireTokenByDeviceCode( deviceCodeParameters *AcquireTokenDeviceCodeParameters) (IAuthenticationResult, error)
AcquireTokenByDeviceCode stuff
func (*PublicClientApplication) AcquireTokenByUsernamePassword ¶
func (pca *PublicClientApplication) AcquireTokenByUsernamePassword( usernamePasswordParameters *AcquireTokenUsernamePasswordParameters) (IAuthenticationResult, error)
AcquireTokenByUsernamePassword is a non-interactive request to acquire a security token from the authority, via Username/Password Authentication.
func (*PublicClientApplication) AcquireTokenInteractive ¶
func (pca *PublicClientApplication) AcquireTokenInteractive( interactiveParams *AcquireTokenInteractiveParameters) (IAuthenticationResult, error)
AcquireTokenInteractive stuff
func (*PublicClientApplication) AcquireTokenSilent ¶
func (pca *PublicClientApplication) AcquireTokenSilent( silentParameters *AcquireTokenSilentParameters) (IAuthenticationResult, error)
AcquireTokenSilent stuff
type PublicClientApplicationParameters ¶
type PublicClientApplicationParameters struct {
// contains filtered or unexported fields
}
PublicClientApplicationParameters stuff
func CreatePublicClientApplicationParameters ¶
func CreatePublicClientApplicationParameters(clientID string) *PublicClientApplicationParameters
CreatePublicClientApplicationParameters stuff
func (*PublicClientApplicationParameters) SetAadAuthority ¶
func (p *PublicClientApplicationParameters) SetAadAuthority(authorityURI string)
Source Files ¶
- AcquireTokenCommonParameters.go
- AcquireTokenDeviceCodeParameters.go
- AcquireTokenInteractiveParameters.go
- AcquireTokenSilentParameters.go
- AcquireTokenUsernamePasswordParameters.go
- ApplicationCommonParameters.go
- IAccount.go
- IAuthenticationResult.go
- PublicClientApplication.go
- PublicClientApplicationParameters.go
- msal.go