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 8 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 @@
6. `Application ID URI`: Copy the `Application ID URI` field from the resource server’s Overview screen.

</Expandable>

## FAQs

Check warning on line 271 in website/docs/docs/cloud/manage-access/external-oauth.md

View workflow job for this annotation

GitHub Actions / vale

[vale] website/docs/docs/cloud/manage-access/external-oauth.md#L271

[custom.SentenceCaseHeaders] 'FAQs' should use sentence-style capitalization. Try '' instead.
Raw output
{"message": "[custom.SentenceCaseHeaders] 'FAQs' should use sentence-style capitalization. Try '' instead.", "location": {"path": "website/docs/docs/cloud/manage-access/external-oauth.md", "range": {"start": {"line": 271, "column": 4}}}, "severity": "WARNING"}

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

Check warning on line 3 in website/docs/faqs/Troubleshooting/failed-snowflake-oauth-connection.md

View workflow job for this annotation

GitHub Actions / vale

[vale] website/docs/faqs/Troubleshooting/failed-snowflake-oauth-connection.md#L3

[custom.UIElements] UI elements like 'Edit' should be bold.
Raw output
{"message": "[custom.UIElements] UI elements like 'Edit' should be bold.", "location": {"path": "website/docs/faqs/Troubleshooting/failed-snowflake-oauth-connection.md", "range": {"start": {"line": 3, "column": 15}}}, "severity": "WARNING"}
sidebar_label: 'Receiving `Failed to connect to database` error'
---

1. If you see this error:

```
runleonarun marked this conversation as resolved.
Show resolved Hide resolved
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. 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:

Check warning on line 13 in website/docs/faqs/Troubleshooting/failed-snowflake-oauth-connection.md

View workflow job for this annotation

GitHub Actions / vale

[vale] website/docs/faqs/Troubleshooting/failed-snowflake-oauth-connection.md#L13

[custom.UIElements] UI elements like 'Edit' should be bold.
Raw output
{"message": "[custom.UIElements] UI elements like 'Edit' should be bold.", "location": {"path": "website/docs/faqs/Troubleshooting/failed-snowflake-oauth-connection.md", "range": {"start": {"line": 13, "column": 4}}}, "severity": "WARNING"}
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