providers/beyondidentity
BeyondIdentityProfile
參閱
屬性
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 提供者。
參數
參數 | 類型 |
---|---|
config | OIDCUserConfig <BeyondIdentityProfile > |