English 中文(简体)
谷歌进入象征性到期时间
原标题:Google access token expiration time
  • 时间:2012-04-30 22:07:55
  •  标签:
  • oauth-2.0

当我从谷歌文获得<条码>接入_token时,该编号为expires_in数值。 根据文件,这一数值表示“获得象征性服务的剩余寿命”。

具有这种价值的单位是什么?

问题回答

光谱指:

https://datatierer.ietf.org/doc/html/draft-ietf-oauth-v2-22#section-4.2.2

expires_in
    OPTIONAL.  The lifetime in seconds of the access token.  For
    example, the value "3600" denotes that the access token will
    expire in one hour from the time the response was generated.

我同意OP的看法,即它不关心谷歌没有记载这一点。

Since there is no accepted answer I will try to answer this one:

[s] - seconds

https://developers.google.com/identity/protocols/OAuth2UserAgent#validate-access-token”rel=“noreferer”

  • expires_in -- The number of seconds left before the token becomes invalid.




相关问题
Microsoft partner API: can t authenticate

I ve created an app in Azure AD and followed this steps (Application and user access): https://github.com/MicrosoftDocs/partner-rest/blob/docs/partner-rest/develop/api-authentication.md From what I ...

Oath+Twitter IPhoneSDK

Does anyone know of a good example utilizing the twitter API and Oauth authentication for sending Twits iPhone SDK ........... I got stuck @ sending the twits .........I can make a successful login ...

Can t get user info from Facebook with OAuth 2.0

As soon as the user is logged in, I retrieve the user info using this code: [_facebook requestWithGraphPath:@"me" andDelegate:self]; It worked for the first few times, but it eventually returned an ...

热门标签