providers/webex
WebexProfile
使用個人資料回調時,從 Webex 返回的使用者個人資料。
請參考 Webex 開發人員入口網站上的 People - 取得我自己的詳細資料 以取得其他欄位。返回的欄位可能會因使用者的角色、OAuth 整合的範圍以及 OAuth 整合所屬的組織而異。
繼承
Record
<string
,any
>
屬性
avatar?
optional avatar: string;
displayName?
optional displayName: string;
emails
emails: string[];
id
id: string;
default()
default<P>(config): OAuthConfig<P>
將 Webex 登入新增至您的頁面。
設定
回調 URL
https://example.com/api/auth/callback/webex
配置
import { Auth } from "@auth/core"
import Webex from "@auth/core/providers/webex"
const request = new Request(origin)
const response = await Auth(request, {
providers: [
Webex({ clientId: WEBEX_CLIENT_ID, clientSecret: WEBEX_CLIENT_SECRET }),
],
})
資源
注意事項
預設情況下,Auth.js 假設 Webex 提供者是基於 OAuth 2 規範。
💡
Webex 提供者具有 預設配置。若要覆寫您的使用案例的預設值,請查看自訂內建的 OAuth 提供者。
類型參數
類型參數 |
---|
P 繼承自 WebexProfile |
參數
參數 | 類型 |
---|---|
config | OAuthUserConfig <P > & { apiBaseUrl : string ; } |
返回
OAuthConfig
<P
>