snapshot of https://github.com/ory/kratos.git (master, 2026-09-15; blobs > 131072B omitted)
Some checks failed
CI / Run tests and lints (push) Failing after 29s
CI / Build CLI docs (push) Has been skipped
CI / Run Playwright end-to-end tests (mysql) (push) Failing after 3s
CI / Run Playwright end-to-end tests (postgres) (push) Failing after 2s
CI / Run Playwright end-to-end tests (sqlite) (push) Failing after 3s
CodeQL / Analyze (go) (push) Failing after 4s
CodeQL / Analyze (javascript) (push) Failing after 3s
Docker Image Scanners / scanners (push) Failing after 4s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Run end-to-end tests (postgres) (push) Failing after 19s
CI / Run end-to-end tests (sqlite) (push) Failing after 2s
CI / Run Playwright end-to-end tests (cockroach) (push) Failing after 2s
CI / Draft newsletter (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
Some checks failed
CI / Run tests and lints (push) Failing after 29s
CI / Build CLI docs (push) Has been skipped
CI / Run Playwright end-to-end tests (mysql) (push) Failing after 3s
CI / Run Playwright end-to-end tests (postgres) (push) Failing after 2s
CI / Run Playwright end-to-end tests (sqlite) (push) Failing after 3s
CodeQL / Analyze (go) (push) Failing after 4s
CodeQL / Analyze (javascript) (push) Failing after 3s
Docker Image Scanners / scanners (push) Failing after 4s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Run end-to-end tests (postgres) (push) Failing after 19s
CI / Run end-to-end tests (sqlite) (push) Failing after 2s
CI / Run Playwright end-to-end tests (cockroach) (push) Failing after 2s
CI / Draft newsletter (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
This commit is contained in:
32
selfservice/strategy/oidc/stub/oidc.uaepass.jsonnet
Normal file
32
selfservice/strategy/oidc/stub/oidc.uaepass.jsonnet
Normal file
@@ -0,0 +1,32 @@
|
||||
local claims = std.extVar('claims');
|
||||
|
||||
local raw = claims.raw_claims;
|
||||
|
||||
if std.length(claims.sub) == 0 then
|
||||
error 'claim sub not set'
|
||||
else
|
||||
{
|
||||
identity: {
|
||||
traits: {
|
||||
subject: claims.sub,
|
||||
[if "email" in claims && claims.email != '' then "email" else null]: claims.email,
|
||||
[if "fullnameEN" in raw && raw.fullnameEN != '' then "name" else null]: {
|
||||
full: raw.fullnameEN,
|
||||
[if "firstnameEN" in raw && raw.firstnameEN != '' then "first" else null]: raw.firstnameEN,
|
||||
[if "lastnameEN" in raw && raw.lastnameEN != '' then "last" else null]: raw.lastnameEN,
|
||||
},
|
||||
[if "fullnameAR" in raw && raw.fullnameAR != '' then "name_ar" else null]: {
|
||||
full: raw.fullnameAR,
|
||||
[if "firstnameAR" in raw && raw.firstnameAR != '' then "first" else null]: raw.firstnameAR,
|
||||
[if "lastnameAR" in raw && raw.lastnameAR != '' then "last" else null]: raw.lastnameAR,
|
||||
},
|
||||
[if "uuid" in raw && raw.uuid != '' then "uuid" else null]: raw.uuid,
|
||||
[if "unifiedId" in raw && raw.unifiedId != '' then "unified_id" else null]: raw.unifiedId,
|
||||
[if "idn" in raw && raw.idn != '' then "idn" else null]: raw.idn,
|
||||
[if "userType" in raw && raw.userType != '' then "user_type" else null]: raw.userType,
|
||||
[if "nationalityEN" in raw && raw.nationalityEN != '' then "nationality" else null]: raw.nationalityEN,
|
||||
[if "gender" in raw && raw.gender != '' then "gender" else null]: raw.gender,
|
||||
[if "mobile" in raw && raw.mobile != '' then "phone" else null]: raw.mobile,
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user