providers/okta
OktaProfile
繼承
Record
<string
,any
>
屬性
address
address: string;
amr
amr: string;
at_hash
at_hash: string;
aud
aud: string;
auth_time
auth_time: string;
birthdate
birthdate: string;
c_hash
c_hash: string;
email: string;
email_verified
email_verified: string;
exp
exp: string;
family_name
family_name: string;
gender
gender: string;
given_name
given_name: string;
iat
iat: string;
idp
idp: string;
iss
iss: string;
jti
jti: string;
locale
locale: string;
middle_name
middle_name: string;
name
name: string;
nickname
nickname: string;
nonce
nonce: string;
phone_number
phone_number: string;
picture
picture: string;
preferred_username
preferred_username: string;
profile
profile: string;
sub
sub: string;
updated_at
updated_at: string;
ver
ver: string;
website
website: string;
zoneinfo
zoneinfo: string;
default()
default<P>(options): OAuthConfig<P>
將 Okta 登入新增至您的頁面。
設定
回調網址
https://example.com/api/auth/callback/okta
組態
import { Auth } from "@auth/core"
import Okta from "@auth/core/providers/okta"
const request = new Request(origin)
const response = await Auth(request, {
providers: [
Okta({
clientId: OKTA_CLIENT_ID,
clientSecret: OKTA_CLIENT_SECRET,
issuer: OKTA_ISSUER,
}),
],
})
資源
註解
依預設,Auth.js 假設 Okta 提供者是基於 Open ID Connect 規範。
💡
Okta 提供者隨附 預設組態。若要覆寫您的使用案例的預設值,請查看自訂內建的 OAuth 提供者。
免責聲明 如果您認為在預設組態中發現錯誤,您可以開啟一個 issue。
Auth.js 嚴格遵守規範,對於提供者偏離規範的任何情況不承擔責任。您可以開啟一個 issue,但如果問題是不符合規範,我們可能不會尋求解決方案。您可以在討論區中尋求更多協助。
類型參數
類型參數 |
---|
P 繼承自 OktaProfile |
參數
參數 | 類型 |
---|---|
選項 | OAuthUserConfig <P > |
返回值
OAuthConfig
<P
>