controllers

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAzureADViewArgs added in v0.2.1

func SetAzureADViewArgs(c *revel.Controller) revel.Result

Types

type AppAuth added in v0.2.1

type AppAuth struct {
	*revel.Controller
	mgodo.MgoController
}

func (*AppAuth) AuthRedirect added in v0.2.3

func (c *AppAuth) AuthRedirect() revel.Result

Redirect

func (*AppAuth) Authenticate added in v0.2.1

func (c *AppAuth) Authenticate(identity string) revel.Result

Authenticate for Azure AD, called from UI and pass userinfo in callback from AAD For user properties in Azure AD refer: https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties

func (*AppAuth) Logout added in v0.2.1

func (c *AppAuth) Logout() revel.Result

Logout

type Auth

type Auth struct {
	*revel.Controller
	mgodo.MgoController
}

func (*Auth) Authenticate

func (c *Auth) Authenticate(account, password string) revel.Result

Authenticate with AAD, act as a daemon API. For Daemon refer: https://learn.microsoft.com/en-us/azure/active-directory/develop/scenario-daemon-overview

func (*Auth) Logout

func (c *Auth) Logout() revel.Result

Logout

type UserProfile added in v0.2.1

type UserProfile struct {
	Id                       string `json:"id"`
	Mail                     string `json:"mail"`
	Avatar                   string `json:"avatar"`
	Surname                  string `json:"surname"`
	JobTitle                 string `json:"jobTitle"`
	GivenName                string `json:"givenName"`
	EmployeeId               string `json:"employeeId"`
	Department               string `json:"department"`
	DisplayName              string `json:"displayName"`
	OfficeLocation           string `json:"officeLocation"`
	PostalCode               string `json:"postalCode"`
	OnPremisesSamAccountName string `json:"onPremisesSamAccountName"`
}

Jump to

Keyboard shortcuts

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