From 2bd806d008b995b5a1e86bf04fb25684b66ad99a Mon Sep 17 00:00:00 2001 From: Jared Hanson Date: Sun, 10 Feb 2013 20:09:41 -0800 Subject: [PATCH] Implement support for user interface extension. --- lib/passport-openid/strategy.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/passport-openid/strategy.js b/lib/passport-openid/strategy.js index ceb02ed..44ec7ee 100644 --- a/lib/passport-openid/strategy.js +++ b/lib/passport-openid/strategy.js @@ -106,6 +106,12 @@ function Strategy(options, verify) { extensions.push(ax); } + if (options.ui) { + // ui: { mode: 'popup', icon: true, lang: 'fr-FR' } + var ui = new openid.UserInterface(options.ui); + extensions.push(ui); + } + if (options.pape) { var papeOptions = {}; if (options.pape.hasOwnProperty("maxAuthAge")) {