forked from OpenFn/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tailwind-ize and dry up the alerts for oauth credentials (OpenFn#2314)
* Add support for revoking token before reauthorization * use names from Oauth2 specification * use 'here' * use <.icon />, not <Heroicons /> * revoke oauth access on delete * rename migration * update CL * Refactor and introduce revoke failed feedback * Fix failing tests * Add forgotten asserts for oauth error components * Test schedule_credential_deletion/1 revokes token for oauth credentials * Assert event is pushed to hook when authorize url is clicked * More tests for failure cases * Receive authorize_url after it has been sent to hook * Remove unnecessary code and add todo for next iterations * Reduce todo string length * Make sure we don't present re-authorization button when revocation is not available * When deleting an oauth credential, let's make sure a revocation endpoint is available before we attempt to revoke the token * After rebase and fixing tests * Test success_message when revocation is available and also when it is unavailable * wip * dry up the code * more * fix up tests * cleanup more tailwind * fix run link * introduce link-plain * link style * don't save when clicking reauthorize * type button for userinfo also * danger * language for reauthenticate * fix tests * update CL * try userinfo again * Fetch userinfo loader * call it an alert_block * don't revoke before requesting new scopes * onre more concept * merge token with previous one * revoke if possible * language * more testing * losing my mind, why don't scopes get updated? * allow revoke and retry * don't update credential before calling update_credential * fix tests * Make sure we get values from changeset * Remove IO.inspects * Refactor validate to work with changeset and pipe all required params * final test --------- Co-authored-by: Elias W. BA <[email protected]>
- Loading branch information
1 parent
3bbc04c
commit 294a539
Showing
41 changed files
with
888 additions
and
345 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 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 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.