Skip to content

Commit

Permalink
Initial work on code exchange tests
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Sep 27, 2023
1 parent 0c659ac commit f048c84
Show file tree
Hide file tree
Showing 3 changed files with 358 additions and 90 deletions.
4 changes: 4 additions & 0 deletions rfd-api/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ impl ApiContext {
})
}

pub fn set_storage(&mut self, storage: Arc<dyn Storage>) {
self.storage = storage;
}

pub async fn authn_token(&self, rqctx: &RequestContext<Self>) -> Result<AuthToken, AuthError> {
AuthToken::extract(rqctx).await
}
Expand Down
Loading

0 comments on commit f048c84

Please sign in to comment.