google账号校验,增加game account校验注释,便于后期拓展
This commit is contained in:
parent
be79c25aad
commit
60a68087f7
@ -169,7 +169,11 @@ impl GoogleSocial {
|
||||
.get(&kid)
|
||||
.ok_or_else(|| Box::new(ResErr::social("校验Token失败,未找到正确的公钥")))?;
|
||||
|
||||
tracing::info!("public key : {:?}", key);
|
||||
tracing::debug!("public key : {:?}", key);
|
||||
// TODO:
|
||||
// 如果是google game account,可能找不到正确的公钥,需要使用oauth2开发库来实现相应的校验
|
||||
// oauth2开发库参考https://github.com/ramosbugs/oauth2-rs/blob/main/examples/google.rs
|
||||
// google game account账户校验参考:https://github.com/heroiclabs/nakama/blob/master/social/social.go
|
||||
|
||||
// 验证Token
|
||||
let mut validation: Validation = Validation::new(Algorithm::RS256);
|
||||
|
Loading…
Reference in New Issue
Block a user