Call Microsoft Graph (Outlook mail, calendar, OneDrive, Teams) as the signed-in user.
This profile ships with Kirak. Add "integrations" to modules in kirak.json, then name the profile as below. There is nothing to download, and a copy in your project's integrations/ folder is an error.
| Variable | Holds |
|---|---|
KIRAK_INTEGRATION_MICROSOFT_CLIENT_SECRET | The OAuth client secret from the vendor's console. Secret: keep it out of kirak.json and out of source control. |
KIRAK_AUTH_ENCRYPTION_KEYS | Encrypts stored tokens. Shared by every integration; the module refuses to start without it. |
The names follow the integration's name in kirak.json (microsoft here). Name it something else, such as microsoft_sales, and the variables change to match.
Register this as the redirect (callback) URL in the vendor's console, with your app's address in place of <your-app> (the base_url in kirak.json):
https://<your-app>/integrations/microsoft/callback
integrations.providers.microsoft.settings.tenant: common for any account, organizations for work and school accounts, consumers for personal accounts, or your tenant id for one organisation.https://<your-app>/integrations/microsoft/callback.User.Read (Sign in and read the user’s profile), offline_access (added by Kirak so it gets a refresh token)integrations.providers.microsoft.client_id, and the client secret in the environment as KIRAK_INTEGRATION_MICROSOFT_CLIENT_SECRET. Never put the secret in kirak.json.The vendor's own guide · Instructions out of date? ·Suggest an edit
{
"integrations": {
"providers": {
"microsoft": {
"type": "oauth2",
"profile": "microsoft",
"client_id": "your-client-id",
"scope": [
"User.Read"
],
"settings": {
"tenant": "common"
}
}
}
}
}Merged into the profile: scope replaces the profile's default scopes, and offline_access is always added so Kirak gets a refresh token.
common.Report a problem ·Suggest an edit to profile.json ·Add a profile ·Vendor docs the profile was checked against
Product names and logos are trademarks of their respective owners. Their use does not imply endorsement. To ask for this icon to be removed, email trademark@kirak.io.