ezidam + jwt: get key, import private key, create jwt claims and sign them
This commit is contained in:
parent
ef8d75ecee
commit
e99115e174
14 changed files with 217 additions and 5 deletions
|
|
@ -58,4 +58,13 @@ impl App {
|
|||
) -> Result<Option<Self>, Error> {
|
||||
Ok(DatabaseApps::get_one_by_id(conn, id).await?.map(Self::from))
|
||||
}
|
||||
|
||||
pub async fn get_one_from_authorization_code(
|
||||
conn: impl SqliteExecutor<'_>,
|
||||
code: &str,
|
||||
) -> Result<Option<Self>, Error> {
|
||||
Ok(DatabaseApps::get_one_from_authorization_code(conn, code)
|
||||
.await?
|
||||
.map(Self::from))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue