msalgo

package
v0.0.0-...-a01d22e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package msalgo provides the Microsoft Authentication Library (MSAL) for the Go language.

Index

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 (*AcquireTokenUsernamePasswordParameters) GetUsername

func (*AcquireTokenUsernamePasswordParameters) SetPassword

func (p *AcquireTokenUsernamePasswordParameters) SetPassword(password string)

SetPassword stuff

func (*AcquireTokenUsernamePasswordParameters) SetUsername

func (p *AcquireTokenUsernamePasswordParameters) SetUsername(username string)

SetUsername stuff

type IAccount

type IAccount interface {
}

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)

Directories

Path Synopsis
examples
internal

Jump to

Keyboard shortcuts

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