【问题标题】:Which fields are required for auth0.webAuth.authorize()?auth0.webAuth.authorize() 需要哪些字段?
【发布时间】:2020-02-03 03:08:11
【问题描述】:

我正在使用 react-native-auth0 版本 1.6.0,并且一直遵循 Github page here 上的指南。在 "Web Authentication" -> "Log In" 部分中,建议仅将 scopeaudience 传递给 auth0.webAuth.authorize() 方法。但是,我还看到this documentation 在“数据库/AD/LDAP”部分中他们说response_typeclient_idredirect_uri 都是必需的。

我想知道的:

firstsecond 指南中 auth0.webAuth.authorize() 遵循的协议有什么区别?我应该遵循哪个?

【问题讨论】:

    标签: reactjs react-native auth0


    【解决方案1】:

    某些参数是由于库而假定的,或者在您初始化时已经输入。例如,响应类型假定为code,并且您在初始化 WebAuth 时已经输入了您的客户端 ID。

    https://auth0.com/docs/api/authentication#authorization-code-flow-with-pkce

    【讨论】:

      猜你喜欢
      • 2020-12-21
      • 1970-01-01
      • 2023-03-26
      • 1970-01-01
      • 2017-02-05
      • 2015-01-21
      • 1970-01-01
      • 2010-11-01
      • 1970-01-01
      相关资源
      最近更新 更多