Skip to content

Commit

Permalink
Fill in SAMLResponse nameId for pre-populated users
Browse files Browse the repository at this point in the history
  • Loading branch information
lisajian committed Dec 14, 2021
1 parent 6ddc5ab commit da58589
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/emulator/auth/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export function registerHandlers(
<span class="mdc-list-item__text"><span class="mdc-list-item__primary-text">${
info.displayName || "(No display name)"
}</span>
<span class="mdc-list-item__secondary-text fallback-secondary-text">${
<span class="mdc-list-item__secondary-text fallback-secondary-text" id="reuse-email">${
info.email || ""
}</span>
</li>`
Expand Down
2 changes: 1 addition & 1 deletion src/emulator/auth/widget_ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function finishWithUser(urlEncodedIdToken) {
// Save reasonable defaults for SAML providers
if (isSamlProvider) {
var email = document.getElementById('email-input').value;
var email = document.getElementById('email-input').value || document.getElementById('reuse-email').innerText;
url += '&SAMLResponse=' + encodeURIComponent(JSON.stringify({
assertion: {
subject: {
Expand Down

0 comments on commit da58589

Please sign in to comment.