You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`STACK_OVERFLOW_INSTANCE_URL`| The base URL of your Stack Overflow for Teams (Enterprise) instance. |
48
-
|`STACK_OVERFLOW_API_ACCESS_TOKEN`| A **read-only, no-expiry** API access token generated for your Stack Overflow Enterprise instance. This token is used by the plugin's search collator to index questions into Backstage search. |
49
-
|`STACK_OVERFLOW_CLIENT_ID`| The OAuth Client ID from your Stack Overflow application. This is required to enable the secure question creation flow from within Backstage. |
|`STACK_OVERFLOW_INSTANCE_URL`| The base URL of your Stack Overflow for Teams (Enterprise) instance. |
50
+
|`STACK_OVERFLOW_API_ACCESS_TOKEN`| A **read-only, no-expiry** API access token generated for your Stack Overflow Enterprise instance. This token is used by the plugin’s search collator to index questions into Backstage search. |
51
+
|`STACK_OVERFLOW_CLIENT_ID`| The OAuth Client ID from your Stack Overflow application. This is required to enable the secure question creation flow from within Backstage. |
50
52
|`STACK_OVERFLOW_REDIRECT_URI`| The redirect URI where Stack Overflow should send users after completing the OAuth authentication flow. By default, this is `{app.baseUrl}/stack-overflow-teams`. For local development, you can use a redirect service like `http://redirectmeto.com/http://localhost:7007/stack-overflow-teams`. |
|`STACK_OVERFLOW_TEAM_NAME`| The **team name** or **team slug** from your Stack Overflow for Teams account. |
61
+
|`STACK_OVERFLOW_API_ACCESS_TOKEN`| A **read-only, no-expiry** API access token generated for your Stack Overflow Teams instance. Used for indexing content. |
62
+
63
+
📖 How to generate your API Access Token
64
+
65
+
Basic and Business customers can follow the official Stack Overflow for Teams guide to create a Personal Access Token (PAT) for API authentication:
66
+
67
+
👉 [Personal Access Tokens (PATs) for API Authentication](https://stackoverflowteams.help/en/articles/10908790-personal-access-tokens-pats-for-api-authentication)
68
+
69
+
This token should have read-only access and no expiration to be used for indexing questions into Backstage search.
# The API Access Token is used for the Questions' collator, a no-expiry, read-only token is recommended.
19
22
20
23
clientId: ${STACK_OVERFLOW_CLIENT_ID}
21
-
# The clientid must be for an API Application with read-write access.
24
+
# The clientid must be for an API Application with read-write access. Only provide if you are using the Enterprise tier.
22
25
23
26
redirectUri: ${STACK_OVERFLOW_REDIRECT_URI}
24
-
# If no redirectUri is specified this will return to https://<backstage-domain>/stack-overflow-teams
27
+
# If no redirectUri is specified this will return to https://<backstage-domain>/stack-overflow-teams. Only provide if you are using the Enterprise tier.
25
28
26
29
backend:
27
30
# Used for enabling authentication, secret is shared by all backend plugins
# The API Access Token is used for the Questions' collator, a no-expiry, read-only token is recommended.
14
20
15
21
clientId: ${STACK_OVERFLOW_CLIENT_ID}
16
-
# The clientid must be for an API Application with read-write access.
22
+
# The clientid must be for an API Application with read-write access. Only provide if you are using the Enterprise tier.
17
23
18
24
redirectUri: ${STACK_OVERFLOW_REDIRECT_URI}
19
-
# If no redirectUri is specified this will return to https://<backstage-domain>/stack-overflow-teams
25
+
# If no redirectUri is specified this will return to https://<backstage-domain>/stack-overflow-teams. Only provide if you are using the Enterprise tier.
20
26
21
27
backend:
22
28
# Used for enabling authentication, secret is shared by all backend plugins
Copy file name to clipboardExpand all lines: plugins/search-backend-module-stack-overflow-teams-collator/src/collators/StackOverflowQuestionsCollatorFactory.ts
+23-9Lines changed: 23 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -89,8 +89,8 @@ export class StackOverflowQuestionsCollatorFactory
// The code below has been commented, it has potential compatiblity with Enterprise Private Teams but I haven't tested it and since Private Teams is not widely used I've decided to change the logic to prioritise the support for the Basic and Business Teams.
0 commit comments