microsoft

package
Version: v0.0.0-...-4c71261 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccessToken

func GetAccessToken(code string, uri string) (string, error)

GetAccessToken retrieves access_token from authentication code

func SignInURL

func SignInURL(redirectURI string) string

SignInURL returns url which the user must go to

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client struct

func NewClient

func NewClient(token string, url *string) *Client

NewClient constructor

func (*Client) GetProfile

func (c *Client) GetProfile() (Profile, error)

GetProfile retrieves MicrosoftProfile of user

type Profile

type Profile struct {
	DisplayName string `json:"displayName"`
	Mail        string `json:"mail"`
}

Profile microsoft profile struct

Jump to

Keyboard shortcuts

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