microsoft

package
v0.0.0-...-8d7c3bf Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: MIT Imports: 10 Imported by: 1

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