Skip to content

Commit

Permalink
Merge branch 'master' into fix-facebook-refresh-token
Browse files Browse the repository at this point in the history
  • Loading branch information
hassan254-prog authored Jan 23, 2024
2 parents 3dcf82c + e495f1b commit b456af6
Show file tree
Hide file tree
Showing 19 changed files with 517 additions and 276 deletions.
5 changes: 2 additions & 3 deletions docs-v2/integrations/all/microsoft-tenant-specific.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If you want to sync data from Microsoft Graph, use the [Microsoft Teams provider
## Getting started

- [Create an Azure app registration for the specific application](https://go.microsoft.com/fwlink/?linkid=2083908).
- Add permissions for the appropriate app on the `API Permissions` tab
- Add permissions for the appropriate app on the `API Permissions` tab
- [OAuth-related docs](https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow).
- See particularly the `tenant` parameter under [Request an authorization code](https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow#request-an-authorization-code).
This `tenant` parameter must be provided as [extra configuration to the frontend SDK](https://docs.nango.dev/sdks/frontend#oauth-flows-requiring-extra-configuration).
Expand All @@ -36,8 +36,7 @@ This endpoint supports services authorized using an Azure App Registration in an

> - Microsoft Dynamics 365 Finance and Operations
<Tip>You _can_ use this provider for general Microsoft Graph access (and the major Microsoft SaaS services like Teams, OneDrive, other Office 365 services, etc.) by setting the `tenant` to `common` but we recommend using the [Microsoft Teams provider](/integrations/all/microsoft-teams) instead which includes sync capability.
</Tip>
<Tip>You _can_ use this provider for general Microsoft Graph access (and the major Microsoft SaaS services like Teams, OneDrive, other Office 365 services, etc.) by setting the `tenant` to `common` but we recommend using the [Microsoft Teams provider](/integrations/all/microsoft-teams) instead which includes sync capability.</Tip>


## API gotchas
Expand Down
15 changes: 14 additions & 1 deletion docs-v2/sdks/frontend.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ let nango = new Nango({ host: '<INSTANCE-URL>', publicKey: '<PUBLIC-KEY>', webso

## Collecting & storing end-user credentials

You store end-user credentials with the `nango.auth` method.
You store end-user credentials with the `nango.auth` method.

<Tabs>

Expand Down Expand Up @@ -169,3 +169,16 @@ nango.auth('zendesk', '<CONNECTION-ID>', {
params: { subdomain: '<ZENDESK-SUBDOMAIN>' }
});
```

## Detect closed authorization page

To fail when the authorization window is closed before the authorization flow is completed
pass in the extra parameter `detectClosedAuthWindow` to `nango.auth()`

```js
nango.auth('zendesk', '<CONNECTION-ID>', {
detectClosedAuthWindow: true,
...
});
```

Loading

0 comments on commit b456af6

Please sign in to comment.