-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Write DID signature verification & tests * Write failing rsa DID test * Move over DID tests * Manually import core changes from ##550 * Niv update * Remove redundant test * Parse ASN1 DER RSAPublicKeys * Adjust test fixture to use new format * Fix fission-cli type errors * Get everything compiling * Fix one remaining type error * Fix type error * Revert "Niv update" This reverts commit 3a11d68. * Cherry-pick some changes from "Niv update" * Remove AllowAmbiguousTypes * Move Test.Prelude to Test.Web.UCAN.Prelude * Re-add AllowAmbigousTypes for DelegationSemantics I'm pretty sure I need this? https://github.com/fission-suite/fission/runs/5005311975 * Revert encoding DIDs in new format The rest of the system needs to understand the new format first! Still, we can now *consume* the new format in the server/CLI. * Remove unused orphan
- Loading branch information
Showing
30 changed files
with
351 additions
and
242 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
11 changes: 0 additions & 11 deletions
11
fission-core/library/Fission/Internal/Orphanage/RSA2048.hs
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
{-# LANGUAGE AllowAmbiguousTypes #-} | ||
|
||
module Fission.Web.Client | ||
( sendRequestM | ||
, sendAuthedRequest | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module Fission.Web.Server.Auth.Token.UCAN (handler) where | ||
|
||
import Web.DID.Types | ||
import Web.DID.Types as DID | ||
import Web.UCAN.Resolver as UCAN | ||
import qualified Web.UCAN.Types as UCAN | ||
import qualified Web.UCAN.Validation as UCAN | ||
|
@@ -42,7 +42,7 @@ handler (Bearer.Token jwt rawContent) = do | |
toAuthorization jwt | ||
|
||
toAuthorization :: | ||
( UCAN.Resolver m | ||
( UCAN.Resolver m | ||
, MonadThrow m | ||
, MonadLogger m | ||
, MonadDB t m | ||
|
@@ -56,7 +56,7 @@ toAuthorization [email protected] {claims = UCAN.Claims {..}} = do | |
Left err -> | ||
throwM err | ||
|
||
Right UCAN.UCAN {claims = UCAN.Claims {sender = DID {publicKey = pk}}} -> | ||
Right UCAN.UCAN {claims = UCAN.Claims {sender = DID.Key pk}} -> | ||
runDB (User.getByPublicKey pk) >>= \case | ||
Nothing -> | ||
Web.Error.throw $ NotFound @User | ||
|
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.