Code Monkey home page Code Monkey logo

Comments (5)

zhaoyiming0803 avatar zhaoyiming0803 commented on June 2, 2024

你好,我这边用 examples 中的代码看了下,5.1.2 暂时没有复现以上问题哈。目前最新版是 5.1.3-alpha.17,下周会发正式版。

控制台相关配置可参考:Web Guard 文档

或者你可以提供一个最小复现 demo,我这边来跟进排查下。

from guard.

addlistener avatar addlistener commented on June 2, 2024

应该是和我我的 publicConfig 有关。如果不给特定的 public config 可能不能复现

我也检查了一下,appId是存在的
image

所以按道理来说,这里报 缺少 appid & secret 是不准确的?
https://github.com/Authing/Guard/blob/211cf14071/packages/guard-shim-react18/src/index.tsx#L155-L168

from guard.

zhaoyiming0803 avatar zhaoyiming0803 commented on June 2, 2024

应该是和我我的 publicConfig 有关。如果不给特定的 public config 可能不能复现

我也检查了一下,appId是存在的 image

所以按道理来说,这里报 缺少 appid & secret 是不准确的? https://github.com/Authing/Guard/blob/211cf14071/packages/guard-shim-react18/src/index.tsx#L155-L168

使用 Guard 无需 secret,如果是标准 Web 应用,请在应用详情的 应用配置 -> 其他配置 -> 授权配置 中,请确保应用的 换取 token 身份验证方式 设置为了 none。具体参考这块:Web Guard 文档

方便的话,也可以加我微信:1047832475,发我 appId 看下。

有问题随时反馈,我来跟进。

from guard.

addlistener avatar addlistener commented on June 2, 2024

这是我在这一行的参数

return new AuthenticationClient(_authClientOptions)

{
  "appId": "******",
  "appHost": "https://*****.authing.cn",
  "redirectUri": "http://localhost:3000/callback",
  "tokenEndPointAuthMethod": "client_secret_post",
  "introspectionEndPointAuthMethod": "client_secret_post"
}

跑完这个new AuthenticationClient(_authClientOptions)就报错了

from guard.

zhaoyiming0803 avatar zhaoyiming0803 commented on June 2, 2024

这是我在这一行的参数

return new AuthenticationClient(_authClientOptions)

{
  "appId": "******",
  "appHost": "https://*****.authing.cn",
  "redirectUri": "http://localhost:3000/callback",
  "tokenEndPointAuthMethod": "client_secret_post",
  "introspectionEndPointAuthMethod": "client_secret_post"
}

跑完这个new AuthenticationClient(_authClientOptions)就报错了

在控制台 -> 应用 -> 协议配置 -> 授权配置,将应用的 换取 token 身份验证方式 设置为 none,如下:

image

from guard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.