Documentation
¶
Index ¶
Constants ¶
const ( Key = "msgraph" // The app registration Graph is reached with: its organisation, client id and secret, the address it signs in at, the scope its token // asks for and the address of Graph; each empty one taken from the sign-in a chat app of the organisation keeps TenantID = Key + ".tenant_id" ClientID = Key + ".client_id" ClientSecret = Key + ".client_secret" Authority = Key + ".authority" Scope = Key + ".scope" GraphURL = Key + ".graph_url" // Address Graph posts the notifications of the profile to, empty for the server's public address NotificationURL = Key + ".notification_url" // Addresses notifications are taken from, any for none while the server answers this computer alone AllowedSources = Key + ".allowed_sources" // A secret every subscription carries in place of one made for each ClientState = Key + ".client_state" // How long before its end a subscription is renewed RenewWithin = Key + ".renew_within" // Largest batch taken, and how many notifications are remembered so one that comes again is taken once MaxBody = Key + ".max_body" Receipts = Key + ".receipts" )
Settings each profile has for reaching Microsoft Graph and taking its notifications
const ( DefaultAuthority = "https://login.microsoftonline.com" DefaultGraphURL = "https://graph.microsoft.com/v1.0" DefaultScope = "https://graph.microsoft.com/.default" )
Microsoft's own addresses and the scope of an app's token
const NotifyPath = "/api/msgraph/notify"
Path of the receiver among the routes of the HTTP API, under /p/<profile> for a profile other than the server's
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.