久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Auth0中的id_token和access_token有什么區(qū)別

What is the difference between id_token and access_token in Auth0(Auth0中的id_token和access_token有什么區(qū)別)
本文介紹了Auth0中的id_token和access_token有什么區(qū)別的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問題描述

在 Auth0 中,您可以使用 刷新令牌.在這個(gè)鏈接中,我們可以看到很多返回的參數(shù):

In Auth0 you can use refresh tokens. In this link, we can see many returned parameters:

lock.showSignin({
  authParams: {
    scope: 'openid offline_access'
  }
}, function (err, profile, id_token, access_token, state, refresh_token) {
  // store refresh_token
});

顯然,access_tokens 可用于檢索用戶配置文件數(shù)據(jù).但這似乎是oauth特有的,我認(rèn)為auth0使用openid?

Apparently, access_tokens can be used to retrieve user profile data. But this appears to be specific to oauth, and I thought auth0 uses openid?

id_tokenaccess_token有什么區(qū)別?

推薦答案

OpenID Connect 建立在 OAuth2 之上.

OpenID Connect is built on top of OAuth2.

  • access_token 可用于調(diào)用 Auth0 中的某些 API(例如 /userinfo)或您在 Auth0 中定義的 API.
  • id_token 是 JWT,代表登錄用戶.您的應(yīng)用程序經(jīng)常使用它.
  • refresh_token(僅供移動(dòng)/桌面應(yīng)用程序使用)不會(huì)過期(但可撤銷),它允許您獲得新鑄造的 access_tokensid_token.
  • An access_token is useful to call certain APIs in Auth0 (e.g. /userinfo) or an API you define in Auth0.
  • An id_token is a JWT and represents the logged in user. It is often used by your app.
  • A refresh_token (only to be used by a mobile/desktop app) doesn't expire (but is revokable) and it allows you to obtain freshly minted access_tokens and id_token.

這篇關(guān)于Auth0中的id_token和access_token有什么區(qū)別的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Is Math.random() cryptographically secure?(Math.random() 在密碼學(xué)上是安全的嗎?)
Secure random numbers in javascript?(在javascript中保護(hù)隨機(jī)數(shù)?)
How to avoid multiple token refresh requests when making simultaneous API requests with an expired token(使用過期令牌發(fā)出同時(shí) API 請(qǐng)求時(shí)如何避免多個(gè)令牌刷新請(qǐng)求)
JWT not decoding quot;JWT malformedquot; - Node Angular(JWT 未解碼“JWT malformed;- 節(jié)點(diǎn)角度)
How to invalidate a JWT token with no expiry time(如何使沒有到期時(shí)間的 JWT 令牌無(wú)效)
Authorization header in img src link(img src 鏈接中的授權(quán)標(biāo)頭)
主站蜘蛛池模板: 国产午夜精品久久久久久久 | 免费观看全黄做爰视频 | 亚洲永久免费视频 | 午夜视频网 | www性 | 在线国产一区 | 中文字幕国产 | 欧美操 | 中文在线一区二区 | 在线黄网 | 欧美自拍视频 | 中文字幕在线资源 | 91在线看片 | 狠狠干天天 | 国产精品久久午夜夜伦鲁鲁 | 亚洲区视频 | 日韩欧美在线播放 | 久久精品99久久久久久 | 麻豆视频一区二区 | 精品欧美一区二区三区久久久 | 久久草视频| 久草成人 | 国产成人av网站 | 天天干天天干天天操 | 自拍偷拍中文字幕 | 日韩欧美高清 | 亚洲成av | 超碰com| 波多野结衣之双调教hd | 免费一区二区视频 | 免费精品| 黄色小视频免费 | 欧美成人久久 | 午夜天堂在线 | 久久av网站 | 天天久久综合 | 日韩视频免费看 | 亚洲第一伊人 | 国产精品偷乱一区二区三区 | 日本国产视频 | 蜜臀av性久久久久av蜜臀妖精 |