providers/bankid-no
BankIDNorwayProfile
参见
属性
acr
acr: string;用于 IDP 选项 的统一资源名称,包括保证级别 (LoA)。
示例
urn:bankid:bid;LOA=4additionalCertInfo
additionalCertInfo: {
certQualified: boolean;
certValidFrom: number;
certValidTo: number;
keyAlgorithm: string;
keySize: string;
policyOid: string;
serialNumber: string;
subjectName: string;
versionNumber: string;
};certQualified
certQualified: boolean;certValidFrom
certValidFrom: number;certValidTo
certValidTo: number;keyAlgorithm
keyAlgorithm: string;keySize
keySize: string;policyOid
policyOid: string;serialNumber
serialNumber: string;subjectName
subjectName: string;versionNumber
versionNumber: string;amr
amr: "BID" | "BIM" | "BIS";用于对最终用户进行身份验证的 IDP 选项 的名称。如果最终用户需要进行身份验证升级,请注意,此值可能与 authorize 端点的 login_hint 参数中指定的任何 amr 值不同。
at_hash
at_hash: string;aud
aud: string;始终为 client_id
auth_time
auth_time: number;纪元时间
azp
azp: string;等于 client_id
bankid_altsub
bankid_altsub: string;与关联的 BankID 证书相关的个人标识符 (PID) / 序列号。
birthdate
birthdate: string;email?
optional email: string;仅从 userinfo_endpoint 返回。
exp
exp: number;family_name
family_name: string;given_name
given_name: string;iat
iat: number;iss
iss: string;jti
jti: string;name
name: string;nnin_altsub?
optional nnin_altsub: string;挪威国民身份证号码 (fødselsnummer)。它可以作为 sub 的替代。需要在 authorize 端点中使用 nnin_altsub 范围。
示例
181266*****originator
originator: string;在 BID 或 BIM 的情况下,将返回最终用户证书的发行者。
示例
CN=BankID Bankenes ID-tjeneste Bank CA 2,
OU=988477052,
O=Bankenes ID-tjeneste AS,*
C=NO;OrginatorId=9775;OriginatorName=Gjensidige Bank RA 1session_state
session_state: string;sid
sid: string;sub
sub: string;tid
tid: string;当前用作 securityData 端点(欺诈数据 服务)的输入参数。
typ
typ: "ID";updated_at
updated_at: number;default()
default(config): OIDCConfig<BankIDNorwayProfile>设置
回调 URL
https://example.com/api/auth/callback/bankid-no配置
import { Auth } from "@auth/core"
import BankIDNorge from "@auth/core/providers/bankid-no"
const request = new Request(origin)
const response = await Auth(request, {
providers: [
Auth0({
clientId: AUTH_BANKID_NO_ID,
clientSecret: AUTH_BANKID_NO_SECRET,
}),
],
})资源
笔记
BankID 挪威提供商提供 默认配置。要覆盖您的用例的默认设置,请查看 自定义内置 OAuth 提供商。
帮助
如果您认为在默认配置中发现了一个错误,您可以打开一个问题。
Auth.js 严格遵守规范,并且不对提供商的任何规范偏差承担责任。您可以打开一个问题,但是如果问题是不符合规范,我们可能不会寻求解决方案。您可以在Discussions中寻求更多帮助。
参数
| 参数 | 类型 |
|---|---|
config | OIDCUserConfig<BankIDNorwayProfile> |