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

feat: add Metabase piece #3

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

AdamSelene
Copy link

@AdamSelene AdamSelene commented Feb 11, 2024

What does this PR do?

Add Metabase piece with action to get results from a "question"
Metabase auth scheme requires a session token (with a fixed duration) that is delivered by a specific endpoint (using email + password)
The Piece will automatically get the token and refresh it when a HTTP 401 error is received, as per Metabase documentation

The token is encrypted (using code which is very similar to encryption.ts) and stored at the Project scope

https://www.metabase.com/learn/administration/metabase-api#authenticate-your-requests-with-a-session-token

Capture d’écran 2024-02-12 à 00 43 33 Capture d’écran 2024-02-12 à 00 44 36

Copy link
Author

AdamSelene commented Feb 11, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @AdamSelene and the rest of your teammates on Graphite Graphite

@AdamSelene
Copy link
Author

Metabase Logo Blue

@AdamSelene AdamSelene force-pushed the olivier-sambourg/feat-add-AuthValidationContext branch from b407750 to 2bc9417 Compare February 11, 2024 23:56
@AdamSelene AdamSelene force-pushed the olivier-sambourg/feat-add-Metabase-piece branch from b00cd29 to 6eaebb3 Compare February 11, 2024 23:56
@AdamSelene AdamSelene force-pushed the olivier-sambourg/feat-add-AuthValidationContext branch from 2bc9417 to cc51db8 Compare February 12, 2024 00:00
@AdamSelene AdamSelene force-pushed the olivier-sambourg/feat-add-Metabase-piece branch from 6eaebb3 to 0a77af5 Compare February 12, 2024 00:00
@AdamSelene AdamSelene changed the base branch from olivier-sambourg/feat-add-AuthValidationContext to main February 13, 2024 13:34
@AdamSelene AdamSelene force-pushed the olivier-sambourg/feat-add-Metabase-piece branch 3 times, most recently from 4094035 to f87acfa Compare February 13, 2024 14:32
@AdamSelene AdamSelene force-pushed the olivier-sambourg/feat-add-Metabase-piece branch from f87acfa to 94f1a8d Compare February 13, 2024 14:34
@AdamSelene AdamSelene merged commit f26b7fc into main Feb 14, 2024
1 check was pending
@AdamSelene AdamSelene deleted the olivier-sambourg/feat-add-Metabase-piece branch February 14, 2024 00:14
AdamSelene pushed a commit that referenced this pull request Jul 19, 2024
Pending changes exported from your codespace
thibclz pushed a commit that referenced this pull request Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant