Sign up for Hasura Newsletter
Loading...

创建 Auth0 应用程序

  1. 导航至 Auth0 控制面板
  2. 注册/登录帐户
  3. 创建新用户。
  4. 单击左侧的Applications菜单选项,然后单击+ Create Application按钮。
  5. 在“创建应用程序”窗口中,为你的应用程序设置名称并选择Single Page Web Applications。(假设前端应用程序将是基于 react/vue 等框架构建的单页应用)

创建 Auth0 应用程序

创建 Auth0 API

我们需要在 Auth0 上创建 API,以确保accessToken成为有效的 JWT。 单击左侧边栏上的APIs部分,然后单击+ Create API按钮。

创建 Auth0 API

现在在出现的弹出窗口中,赋予 API 名称和标识符。 我们可以从技术层面赋予任何值。

比如名称为hasura,标识符为https://hasura.io/learn

Auth0 API

我们可以不改变签名算法。 (RS256)

完成后,请单击“创建”。

Did you find this page helpful?
Start with GraphQL on Hasura for Free
  • ArrowBuild apps and APIs 10x faster
  • ArrowBuilt-in authorization and caching
  • Arrow8x more performant than hand-rolled APIs
Promo
footer illustration
Brand logo
© 2024 Hasura Inc. All rights reserved
Github
Titter
Discord
Facebook
Instagram
Youtube
Linkedin