-
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.
Moved schemas in the appropriate directories
- Loading branch information
Showing
5 changed files
with
48 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from pydantic import BaseModel, HttpUrl | ||
|
||
from typing import Literal | ||
|
||
class DPoPTokenHeaderSchema(BaseModel): | ||
# header | ||
typ: Literal["dpop+jwt"] | ||
alg: Literal[ | ||
"RS256", | ||
"RS384", | ||
"RS512", | ||
"ES256", | ||
"ES384", | ||
"ES512", | ||
"PS256", | ||
"PS384", | ||
"PS512", | ||
] | ||
# TODO - dynamic schema loader if EC or RSA | ||
# jwk: JwkSchema | ||
|
||
|
||
class DPoPTokenPayloadSchema(BaseModel): | ||
# body | ||
jti: str | ||
htm: Literal["GET", "POST", "get", "post"] | ||
htu: HttpUrl | ||
iat: int | ||
ath: str |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from pydantic import BaseModel | ||
|
||
class DescriptorSchema(BaseModel): | ||
id: str | ||
path: str | ||
format: str | ||
|
||
class PresentationSubmissionSchema(BaseModel): | ||
definition_id: str | ||
id: str | ||
descriptor_map: list[DescriptorSchema] | ||
|
||
class ResponseSchema(BaseModel): | ||
state: str | ||
vp_token: str | list[str] | ||
presentation_submission: PresentationSubmissionSchema | ||
|
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.