Skip to content

Commit

Permalink
feat: add claims and debug configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
waltkb committed Sep 16, 2024
1 parent 1b9b58e commit aac7447
Showing 1 changed file with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,23 +273,11 @@ fun Application.test() {

val authReq = authCache[state] ?: error("No such state: $state")

/*"$.name",
"$.credentialSubject.achievement.description",
"$.credentialSubject.achievement.criteria.narrative"*/
val requestedClaims = mapOf(
"id" to "$.credentialSubject.id",
"familyName" to "$.credentialSubject.familyName",
"firstName" to "$.credentialSubject.firstName",
"dateOfBirth" to "$.credentialSubject.dateOfBirth",
"personalIdentifier" to "$.credentialSubject.personalIdentifier",
"placeOfBirth" to "$.credentialSubject.placeOfBirth",
"currentAddress" to "$.credentialSubject.currentAddress",
"gender" to "$.credentialSubject.gender",
)
val requestedClaims = config.claimMapping

val time = Clock.System.now()

if (debug == "autologin") {
if (debug == "autologin" && config.enableDebug) {
val generatedCode = Uuid.random().toString()

loginResultCache[generatedCode] = LoginData(
Expand Down

0 comments on commit aac7447

Please sign in to comment.