auth0仅邀请应用程序JWT未附加在重定向URL的末尾

时间:2017-09-15 04:52:28

标签: node.js express auth0

我正在关注此guide,但在成功通过电子邮件验证后的用户激活步骤中,jwt令牌未附加如here所示,但我获得了一些其他元数据:

from pyspark.sql import HiveContext sqlContext = HiveContext(sc) depts = sqlContext.sql("select * from departments") 17/09/13 03:37:12 WARN metastore.ObjectStore: Version information not found in metastore. hive.metastore.schema.verification is not enabled so recording the schema version 1.1.0 17/09/13 03:37:12 WARN metastore.ObjectStore: Failed to get database default, returning NoSuchObjectException 17/09/13 03:37:14 WARN shortcircuit.DomainSocketFactory: The short-circuit local reads feature cannot be used because libhadoop cannot be loaded. Traceback (most recent call last): File "", line 1, in File "/usr/lib/spark/python/pyspark/sql/context.py", line 580, in sql return DataFrame(self.ssqlctx.sql(sqlQuery), self) File "/usr/lib/spark/python/lib/py4j-0.9-src.zip/py4j/java_gateway.py", line 813, in call File "/usr/lib/spark/python/pyspark/sql/utils.py", line 51, in deco raise AnalysisException(s.split(': ', 1)[1], stackTrace) pyspark.sql.utils.AnalysisException: u'Table not found: departments; line 1 pos 14'

我正在使用express和auth0 nodejs api。

1 个答案:

答案 0 :(得分:1)

您需要在result_url中自行添加生成的JWT。

This code使用API v2创建新的电子邮件验证票证。它将result_url参数指定为本地/Account/Activation操作处理程序。它将generated JWT token作为查询字符串的一部分。

用户验证了自己的电子邮件地址(在Auth0中)后,他将被重定向到result_url端点,并在查询字符串(示例中为/Account/Activation?userToken=xxxx)中显示令牌。 This piece of code处理该端点,验证收到的令牌并显示允许用户输入其密码的视图,并POST最终激活(处理here)。