Google Actions SDK登录隐式流程 [英] Google Actions SDK Sign-In implicit flow

查看:108
本文介绍了Google Actions SDK登录隐式流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编辑:在电话助手上,它的工作问题仅存在于Google动作模拟器中

On phone assistant its working now problem just exist in google action simulator

我只是尝试设置具有隐式授予的Google Actions SDK帐户链接并尝试进行测试

I just try to setup Google Actions SDK account Linking with implicit grant and try to test it in Simulator.

第一个问题甚至可以在模拟器中实现吗?

First question is this even possible in Simulator?


  1. 为此,我在操作控制台帐户中添加了与
    类型的隐式授予链接到我的操作。

  2. 我使用的网址正常工作。

  3. 现在,我向操作添加了注册请求。为了进行测试,如果我在模拟器中编写注册,则服务器响应如下:

{
sessionToken: JSON.stringify(state),
ExpectUserResponse:真,
ExpectInputs:[
{
inputPrompt:{
initialPrompts:[
{
textToSpeech: PLACEHOLDER_FOR_SIGN_IN
}
],
noInputPrompts:[]
},
可能的目的:[
{
intent: actions.intent.SIGN_IN,
inputValueData:{}
}
],
speechBiasingHints:[]
}
]
}


  1. 此后,服务器不再请求登录页面路由(地址正确!)。它只是以SignIN意图错误响应:

{
isInSandbox':false,
surface:{
capabilities:[
{
name: actions.capability.AUDIO_OUTPUT
},
{
name: actions.capability.SCREEN_OUTPUT
}
]
},
inputs:[
{
rawInputs :[[
{
query:我认为是,
inputType: VOICE
}
],
arguments :[[
{
name: SIGN_IN,
'extension':{
@type: type.googleapis.com/google.actions.v2。 SignInValue,
状态:错误
}
}
],
intent: actions.intent.SIGN_IN
}
],
device:{
locale: en-US
},
conversation:{
conversationId: 1494606917128,
type: ACTIVE,
conversationToken: [\ _actions_on_google_\]
}
}

为什么?问题出在哪里?我可以在某处看到错误消息吗?

Why? Where is the problem? Can I see a error message somewhere?

以下是模拟器在3到4之间发生的情况:

Here is what happen in the simulator between 3 and 4:


推荐答案

使用电话应用程序时是否一样?对我来说,它打开了一个带有/ auth端点的嵌入式浏览器,而模拟器却没有。

Is it same when you use the phone app? For me it opens an embedded browser with my /auth endpoint, which the simulator doesn’t do.

这篇关于Google Actions SDK登录隐式流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆