完善google id token 校验
This commit is contained in:
parent
09809fd826
commit
35b6698d07
@ -109,6 +109,7 @@ struct GooglePublicKey {
|
|||||||
e: String,
|
e: String,
|
||||||
n: String,
|
n: String,
|
||||||
kty: String,
|
kty: String,
|
||||||
|
#[serde(rename = "use")]
|
||||||
use_: String,
|
use_: String,
|
||||||
alg: String,
|
alg: String,
|
||||||
kid: String,
|
kid: String,
|
||||||
@ -117,6 +118,7 @@ struct GooglePublicKey {
|
|||||||
#[derive(Deserialize, Debug, Clone, Default)]
|
#[derive(Deserialize, Debug, Clone, Default)]
|
||||||
struct GooglePublicKeys {
|
struct GooglePublicKeys {
|
||||||
keys: Vec<GooglePublicKey>,
|
keys: Vec<GooglePublicKey>,
|
||||||
|
#[serde(skip)]
|
||||||
refresh_at: i64,
|
refresh_at: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user