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
Redirect
func (*AppAuth) Authenticate ¶ added in v0.2.1
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
type Auth ¶
type Auth struct { *revel.Controller mgodo.MgoController }
func (*Auth) Authenticate ¶
Authenticate with AAD, act as a daemon API. For Daemon refer: https://learn.microsoft.com/en-us/azure/active-directory/develop/scenario-daemon-overview
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"` }
Click to show internal directories.
Click to hide internal directories.