atrium-oauth 0.1.6

Core library for implementing AT Protocol OAuth clients
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use atrium_common::store::{Store, memory::MemoryStore};
use jose_jwk::Key;
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct InternalStateData {
    pub iss: String,
    pub dpop_key: Key,
    pub verifier: String,
    pub app_state: Option<String>,
}

pub trait StateStore: Store<String, InternalStateData> {}

pub type MemoryStateStore = MemoryStore<String, InternalStateData>;

impl StateStore for MemoryStateStore {}