Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBearerToken ¶
GetBearerToken get bearer token from request headers
func SetAzureADViewArgs ¶
func SetAzureADViewArgs(c *revel.Controller) revel.Result
func VerifyAadToken ¶
VerifyAadToken to veriry Azure AD token
Types ¶
type AppAuth ¶
type AppAuth struct { *revel.Controller revmongo.MgoController }
func (*AppAuth) Authenticate ¶
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) CheckLogin ¶
Checks if the session expired by checking if the user identity is still present
type Auth ¶
type Auth struct { *revel.Controller revmongo.MgoController }
func (*Auth) Authenticate ¶
Authenticate with AAD, act as a daemon API, suport users without enable MFA. For Daemon refer: https://learn.microsoft.com/en-us/azure/active-directory/develop/scenario-daemon-overview
func (*Auth) CheckLogin ¶
Checks if the session expired by checking if the user identity is still present
type UserProfile ¶
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.