Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
437 views
in Technique[技术] by (71.8m points)

Google Sign In. Getting token from request

There is a good explanation of how to get user info from decode token after user linked his account: https://developers.google.com/assistant/identity/google-sign-in enter image description here

But there is no token in the following intent request and It's difficult to identify the user. Example of intent request:

{
  "handler": {
    "name": "createAccount"
  },
  "intent": {
    "name": "",
    "params": {
      "AccountLinkingSlot": {
        "original": "",
        "resolved": "LINKED"
      }
    },
    "query": ""
  },
  "scene": {
    "name": "newReminder_AccountLinking",
    "slotFillingStatus": "FINAL",
    "slots": {
      "AccountLinkingSlot": {
        "mode": "REQUIRED",
        "status": "SLOT_UNSPECIFIED",
        "updated": true,
        "value": "LINKED"
      }
    },
    "next": {
      "name": "newReminder"
    }
  },
  "session": {
    "id": "ABwppHEWx6GkkRzyCIT3DMHsriVnkbW3RggNv9lUSbHfdU2kjljB7PP2jXOPk_kxxwBzyYqzc-kk6EjTRZs",
    "params": {
      "AccountLinkingSlot": "LINKED"
    },
    "typeOverrides": [],
    "languageCode": ""
  },
  "user": {
    "locale": "en-US",
    "params": {},
    "accountLinkingStatus": "LINKED",
    "verificationStatus": "VERIFIED",
    "packageEntitlements": [],
    "gaiamint": "",
    "permissions": [],
    "lastSeenTime": "2021-01-10T19:23:30Z"
  },
  "home": {
    "params": {}
  },
  "device": {
    "capabilities": [
      "SPEECH",
      "RICH_RESPONSE",
      "LONG_FORM_AUDIO"
    ]
  }
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...