Skip to content

Commit 5f13807

Browse files
committed
add oidcIssuer in default profile
1 parent 3770f10 commit 5f13807

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

lib/models/account-manager.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ class AccountManager {
334334
name: userData.name,
335335
externalWebId: userData.externalWebId,
336336
localAccountId: userData.localAccountId,
337-
webId: userData.webid || userData.webId || userData.externalWebId
337+
webId: userData.webid || userData.webId || userData.externalWebId,
338+
idp: this.host.serverUri
338339
}
339-
340340
if (userConfig.username) {
341341
userConfig.username = userConfig.username.toLowerCase()
342342
}
@@ -360,6 +360,9 @@ class AccountManager {
360360
} else { // no username - derive it from web id
361361
if (userConfig.externalWebId) {
362362
userConfig.username = userConfig.externalWebId
363+
364+
// TODO find oidcIssuer from externalWebId
365+
// removed from idp https://github.com/solid/node-solid-server/pull/1566
363366
} else {
364367
userConfig.username = this.usernameFromWebId(userConfig.webId)
365368
}

lib/models/account-template.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ class AccountTemplate {
7575
const substitutions = {
7676
name: userAccount.displayName,
7777
webId: userAccount.webId,
78-
email: userAccount.email
78+
email: userAccount.email,
79+
idp: userAccount.idp
7980
}
8081

8182
return substitutions

lib/models/user-account.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class UserAccount {
2424
this.email = options.email
2525
this.externalWebId = options.externalWebId
2626
this.localAccountId = options.localAccountId
27+
this.idp = options.idp
2728
}
2829

2930
/**

0 commit comments

Comments
 (0)