Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Google JWT verification and OpenID Google client id init parameter. #2780

Merged
merged 22 commits into from
Jan 15, 2025
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
7ab4c76
Implement Google JWT verification and build time environment variables.
sea-snake Jan 13, 2025
9bb803d
🤖 cargo-fmt auto-update
github-actions[bot] Jan 13, 2025
8764a0f
Make env variable optional
sea-snake Jan 13, 2025
90687f3
Merge remote-tracking branch 'origin/sea-snake/verify-google-jwt' int…
sea-snake Jan 13, 2025
9b22b5c
Make env variable optional
sea-snake Jan 13, 2025
d911471
Make env variable optional
sea-snake Jan 13, 2025
1ed3883
Fix clippy complaints.
sea-snake Jan 13, 2025
f1c077d
🤖 cargo-fmt auto-update
github-actions[bot] Jan 13, 2025
e329742
Rewrite Google OpenIdProvider as trait implementation and add more ex…
sea-snake Jan 14, 2025
d363e8c
🤖 cargo-fmt auto-update
github-actions[bot] Jan 14, 2025
9de1550
Rewrite Google OpenIdProvider as trait implementation and add more ex…
sea-snake Jan 14, 2025
0271314
Merge remote-tracking branch 'origin/sea-snake/verify-google-jwt' int…
sea-snake Jan 14, 2025
8313d15
Fix integration tests
sea-snake Jan 14, 2025
e52ce03
Simplify initialize
sea-snake Jan 14, 2025
94526a3
Add OpenID to config integration tests
sea-snake Jan 15, 2025
288286f
🤖 cargo-fmt auto-update
github-actions[bot] Jan 15, 2025
75f87ad
🤖 npm run generate auto-update
github-actions[bot] Jan 15, 2025
8b29f4f
Fix clippy
sea-snake Jan 15, 2025
299205a
Merge remote-tracking branch 'origin/sea-snake/verify-google-jwt' int…
sea-snake Jan 15, 2025
ad5ab92
🤖 cargo-fmt auto-update
github-actions[bot] Jan 15, 2025
b4140a6
Merge branch 'main' into sea-snake/verify-google-jwt
sea-snake Jan 15, 2025
e6d6de1
Fix integration test
sea-snake Jan 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix clippy
  • Loading branch information
sea-snake committed Jan 15, 2025
commit 8b29f4f7d88cab101cd11b5ff96dfa99a9c34c17
4 changes: 3 additions & 1 deletion src/internet_identity/src/openid/google.rs
Original file line number Diff line number Diff line change
@@ -17,10 +17,12 @@ use internet_identity_interface::internet_identity::types::MetadataEntryV2;
use rsa::{Pkcs1v15Sign, RsaPublicKey};
use serde::Serialize;
use sha2::{Digest, Sha256};
use std::cell::{Cell, RefCell};
use std::cell::RefCell;
use std::collections::HashMap;
use std::convert::Into;
use std::rc::Rc;
#[cfg(test)]
use std::cell::Cell;

const ISSUER: &str = "https://accounts.google.com";