-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[WorkplaceAI] Add authz code-grant flow in Stack Connectors V2 #246655
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
Merged
lorenabalan
merged 55 commits into
connectors-auth-code-grant
from
seanstory/oauth2-auth-code-flow
Feb 4, 2026
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
780c929
First pass at a Sharepoint Online fetcher
seanstory 650f641
Merge branch 'main' into seanstory/add-sharepoint-fetcher
seanstory 4691f1e
First pass at an OAuth Code Grant flow
seanstory 1387a03
Changes from node scripts/check_mappings_update --fix
kibanamachine 5b3a8cf
Changes from node scripts/eslint_all_files --no-cache --fix
kibanamachine 66a47d6
Merge branch 'seanstory/add-sharepoint-fetcher' into seanstory/oauth2…
lorenabalan f8e4a61
Get rid of IDE errors
lorenabalan cadda58
Make expiresIn optional and add a bunch of helper comments to come ba…
lorenabalan e72ae0e
Make expiresIn optional
lorenabalan 5764ef9
Add taskmanager task to cleanup state
lorenabalan 5c72287
Update connectors for optional expiresAt
lorenabalan 3c86163
Increase task frequency
lorenabalan 41734d2
Add rate limiter
lorenabalan 0300b1a
Fixes
lorenabalan ff8cdce
Redirect to success page
lorenabalan 3c77bcd
Use v2 schema
lorenabalan 2fbf1de
Normalize bearer -> Bearer, add redirectUri to connector config and u…
lorenabalan f8d37b4
Make useBasicAuth configurable
lorenabalan 282b427
Cleanup
lorenabalan 4313840
Merge branch 'main' into seanstory/oauth2-auth-code-flow
lorenabalan 1b9911f
Address first batch of comments
lorenabalan 28c188b
Address second batch of comments
lorenabalan 62d5abd
Separate interfaces to avoid awkward optional id
lorenabalan 0c28e2e
Remove thin wrapper function
lorenabalan 48b4850
Remove fields, log them instead
lorenabalan eb1f9f1
Use core, remove authz url and scope from state SO
lorenabalan e9d25bb
Small refactor for readability
lorenabalan 4296d5d
Make returnUrl a parameter
lorenabalan 5715715
Rename route
lorenabalan 4466144
Try refresh token on 401
lorenabalan 404c7a7
Undo custom redirectURI
lorenabalan 6cc6201
Add comment
lorenabalan 9f55d45
Remove TODO
lorenabalan 2dc86d4
Remove lingering attribute
lorenabalan e57ce06
Bump SO number
lorenabalan 19d3f6b
Add notification when oauth completed successfully
lorenabalan 4fd803e
Changes from node scripts/jest_integration -u src/core/server/integra…
kibanamachine ef50f17
Merge branch 'connectors-auth-code-grant' into seanstory/oauth2-auth-…
lorenabalan 356d885
Remove sharepoint and unused labels
lorenabalan 8925a8a
Make callback public endpoint, remove sharepoint docs
lorenabalan 8e9ba7a
bring back deleted icon
lorenabalan 71f4cd5
Reuse refresh logic when handling 401s
lorenabalan 62b5cac
Avoid any
lorenabalan b788df8
Quick checks fixes
lorenabalan cf1a144
Make CI green again
lorenabalan e205b1f
Default to true for isExpired
lorenabalan 67a0546
Changes from yarn openapi:bundle
kibanamachine f8d0324
Merge branch 'connectors-auth-code-grant' into seanstory/oauth2-auth-…
lorenabalan 8004a96
Regenerate oas_docs bundles
lorenabalan a792b5b
Changes from make api-docs
kibanamachine 977af73
Fix SO tests
lorenabalan 2b9dbd2
Merge branch 'seanstory/oauth2-auth-code-flow' of github.com:elastic/…
lorenabalan 2218c08
Update docs and regenerate bundles
lorenabalan 19c1f94
Changes from make api-docs
kibanamachine f79a2b3
Fix tests and remove token normalization
lorenabalan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
packages/kbn-check-saved-objects-cli/src/migrations/__fixtures__/connector_token/10.2.0.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "10.1.0": [ | ||
| { | ||
| "connectorId": "abc123-def456-connector-id", | ||
| "tokenType": "access_token", | ||
| "token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlRlc3QgVXNlciIsImlhdCI6MTUxNjIzOTAyMn0.test_signature", | ||
| "expiresAt": "2025-01-15T14:30:00.000Z", | ||
| "createdAt": "2025-01-15T13:00:00.000Z", | ||
| "updatedAt": "2025-01-15T13:00:00.000Z" | ||
| } | ||
| ], | ||
| "10.2.0": [ | ||
| { | ||
| "connectorId": "abc123-def456-connector-id", | ||
| "tokenType": "access_token", | ||
| "token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlRlc3QgVXNlciIsImlhdCI6MTUxNjIzOTAyMn0.test_signature", | ||
| "expiresAt": "2025-01-15T14:30:00.000Z", | ||
| "createdAt": "2025-01-15T13:00:00.000Z", | ||
| "updatedAt": "2025-01-15T13:00:00.000Z" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.