跳至內容
從 NextAuth.js v4 遷移?請閱讀 我們的遷移指南.

providers/beyondidentity

內建的 Beyond Identity 整合。

BeyondIdentityProfile

參閱

Beyond Identity 開發人員文件

屬性

email

email: string;

使用者的電子郵件地址。

name

name: string;

使用者的全名。

preferred_username

preferred_username: string;

使用者偏好的使用者名稱。

sub

sub: string;

使用者唯一的識別碼。


default()

default(config): OIDCConfig<BeyondIdentityProfile>

將 Beyond Identity 登入新增至您的頁面。

設定

回調 URL

https://example.com/api/auth/callback/beyondidentity

組態

import { Auth } from "@auth/core"
import BeyondIdentity from "@auth/core/providers/beyondidentity"
 
const request = new Request(origin)
const response = await Auth(request, {
  providers: [
    BeyondIdentity({
      clientId: BEYOND_IDENTITY_CLIENT_ID,
      clientSecret: BEYOND_IDENTITY_CLIENT_SECRET,
      issuer: BEYOND_IDENTITY_ISSUER,
    }),
  ],
})

資源

注意事項

預設情況下,Auth.js 假設 BeyondIdentity 提供者是以 OIDC 規格為基礎。

💡

BeyondIdentity 提供者隨附 預設組態。若要針對您的使用案例覆寫預設值,請查看自訂內建 OAuth 提供者

免責聲明如果您認為您在預設組態中發現錯誤,您可以開啟問題

Auth.js 嚴格遵守規格,並且無法對提供者偏離規格的行為負責。您可以開啟問題,但是如果問題是不符合規格,我們可能不會尋求解決方案。您可以在討論區中尋求更多協助。

參數

參數類型
configOIDCUserConfig<BeyondIdentityProfile>

回傳值

OIDCConfig<BeyondIdentityProfile>

Auth.js © Balázs Orbán 和團隊 -2024