Skip to content

Commit

Permalink
feat(auth): add google oidc
Browse files Browse the repository at this point in the history
  • Loading branch information
ymgyt committed Mar 17, 2024
1 parent 57657b4 commit 92b1f01
Show file tree
Hide file tree
Showing 11 changed files with 569 additions and 324 deletions.
5 changes: 4 additions & 1 deletion crates/synd_auth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ version = "0.1.4"

[dependencies]
anyhow = { workspace = true }
chrono = { workspace = true }
http = { workspace = true }
http-serde-ext = "0.1"
reqwest = { workspace = true }
jsonwebtoken = "9.2.0"
reqwest = { workspace = true, features = ["rustls-tls-webpki-roots"] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["time"] }
tracing = { workspace = true }

Expand Down
13 changes: 13 additions & 0 deletions crates/synd_auth/src/config.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pub mod github {
pub const CLIENT_ID: &str = "6652e5931c88e528a851";
}

pub mod google {
pub const CLIENT_ID: &str = concat!(
"387487893172-",
"u28ebbv8lbl157jjeb7blsts8b5impio",
".apps.googleusercontent.com"
);
// This value is distributed as binary anyway, so it cannot be secret
pub const CLIENT_ID2: &str = concat!("GOCSPX-", "igWWNOqW7hsV_", "08qdDx1P2s8YqlG");
}
169 changes: 0 additions & 169 deletions crates/synd_auth/src/device_flow/github.rs

This file was deleted.

120 changes: 0 additions & 120 deletions crates/synd_auth/src/device_flow/google.rs

This file was deleted.

0 comments on commit 92b1f01

Please sign in to comment.