ci: added basic workflows #2

Merged
sharang merged 14 commits from feat/CAI-5 into main 2026-02-18 09:46:29 +00:00
2 changed files with 3 additions and 7 deletions
Showing only changes of commit 5d333e7e86 - Show all commits

View File

@@ -214,7 +214,7 @@ pub async fn auth_callback(
let client = reqwest::Client::new();
let token_resp = client
.post(&config.token_endpoint())
.post(config.token_endpoint())
.form(&[
("grant_type", "authorization_code"),
("client_id", &config.client_id),
@@ -237,7 +237,7 @@ pub async fn auth_callback(
// --- Fetch userinfo ---
let userinfo: UserinfoResponse = client
.get(&config.userinfo_endpoint())
.get(config.userinfo_endpoint())
.bearer_auth(&tokens.access_token)
.send()
.await

View File

@@ -1,11 +1,7 @@
use std::{
ops::{Deref, DerefMut},
sync::Arc,
};
use std::{ops::Deref, sync::Arc};
use axum::extract::FromRequestParts;
use serde::{Deserialize, Serialize};
use tracing::debug;
#[derive(Debug, Clone)]
pub struct UserState(Arc<UserStateInner>);