Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update external-oauth.md #6433

Merged
merged 21 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
e258621
Update external-oauth.md
gunnava Nov 7, 2024
fa8d9bc
Merge branch 'current' into Snowflake-External-Oauth-trobleshooting
runleonarun Nov 7, 2024
f69704d
Merge branch 'current' into Snowflake-External-Oauth-trobleshooting
mirnawong1 Nov 8, 2024
710ed0d
moving to faq
runleonarun Nov 8, 2024
1544dbb
Apply suggestions from code review
runleonarun Nov 8, 2024
5405a5f
Merge branch 'current' into Snowflake-External-Oauth-trobleshooting
runleonarun Nov 8, 2024
ae95190
Merge branch 'current' into Snowflake-External-Oauth-trobleshooting
runleonarun Nov 8, 2024
cd8e316
Update website/docs/faqs/Troubleshooting/failed-snowflake-oauth-conne…
runleonarun Nov 8, 2024
16ee4e1
Update website/docs/faqs/Troubleshooting/failed-snowflake-oauth-conne…
runleonarun Nov 8, 2024
1cf0c12
Update website/docs/faqs/Troubleshooting/failed-snowflake-oauth-conne…
runleonarun Nov 9, 2024
368f0ef
Update website/docs/faqs/Troubleshooting/failed-snowflake-oauth-conne…
runleonarun Nov 9, 2024
ed54f9b
Update website/docs/faqs/Troubleshooting/failed-snowflake-oauth-conne…
runleonarun Nov 9, 2024
31ad356
Update website/docs/faqs/Troubleshooting/failed-snowflake-oauth-conne…
runleonarun Nov 9, 2024
6a396ee
Update website/docs/faqs/Troubleshooting/failed-snowflake-oauth-conne…
runleonarun Nov 9, 2024
ce642f6
Update failed-snowflake-oauth-connection.md
runleonarun Nov 9, 2024
01a8790
Merge branch 'current' into Snowflake-External-Oauth-trobleshooting
runleonarun Nov 9, 2024
9b4fd96
Update failed-snowflake-oauth-connection.md
runleonarun Nov 9, 2024
0e88a1d
Merge branch 'current' into Snowflake-External-Oauth-trobleshooting
mirnawong1 Nov 11, 2024
ae0245d
Merge branch 'current' into Snowflake-External-Oauth-trobleshooting
nataliefiann Nov 11, 2024
d6f13bb
Apply suggestions from code review
runleonarun Nov 12, 2024
5c5edff
Merge branch 'current' into Snowflake-External-Oauth-trobleshooting
runleonarun Nov 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions website/docs/docs/cloud/manage-access/external-oauth.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,7 @@ app in Entra ID, click **Endpoints** and open the **Federation metadata document
6. `Application ID URI`: Copy the `Application ID URI` field from the resource server’s Overview screen.

</Expandable>

## FAQs

<FAQ path="Troubleshooting/failed-snowflake-oauth-connection" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: Receiving a `Failed to connect to DB` error when connecting to Snowflake
description: "Edit your OAuth Security integration when you see error"
sidebar_label: 'Receiving `Failed to connect to database` error'
---

1. If you see this error:

```shell

Failed to connect to DB: xxxxxxx.snowflakecomputing.com:443. The role requested in the connection or the default role if none was requested in the connection ('xxxxx') is not listed in the Access Token or was filtered.
runleonarun marked this conversation as resolved.
Show resolved Hide resolved
Please specify another role, or contact your OAuth Authorization server administrator.
runleonarun marked this conversation as resolved.
Show resolved Hide resolved
```
runleonarun marked this conversation as resolved.
Show resolved Hide resolved

2. Edit your OAuth Security integration and explicitly specify this Scope mapping attribute:
runleonarun marked this conversation as resolved.
Show resolved Hide resolved

```sql
ALTER INTEGRATION <my_int_name> SET EXTERNAL_OAUTH_SCOPE_MAPPING_ATTRIBUTE = 'scp';
```

You can read more about this error in [Snowflake's documentation](https://community.snowflake.com/s/article/external-custom-oauth-error-the-role-requested-in-the-connection-is-not-listed-in-the-access-token).
runleonarun marked this conversation as resolved.
Show resolved Hide resolved
Loading