Thanks Arvind,
Using a CDN version fixes the issue and a github logon now works from a customised passportlogin.xhtml.
There is an issue with "Use subject to MIT LICENCE" link. It is rendered as text because the anchor tags are escaped.
The issue I have is when I click the added social logon button for azure ad oauth2 I get the message "Go back and register". I can see in the passport log an "unknown error" and then a url to hit the configured route on the Gluu server:
"GET /passport/token HTTP/1.1\" 200 201 \"https://xxxx.com/oxauth/auth/passport/passport-login\" \"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36\"","timestamp":"2017-07-10T15:44:27.847Z"}
**{"level":"error","message":"Unknown Error: {}","**timestamp":"2017-07-10T15:44:27.862Z"}
{"level":"info","message":"::ffff:127.0.0.1 - - [10/Jul/2017:15:44:27 +0000] \"GET **/passport/auth/azuread**/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqd3QiOiIwMDc5OThmNC05ODQzLTRhMWMtODFhOS04NmM0ZWZjOGY3NzciLCJpYXQiOjE0OTk3MDE0NjcsImV4cCI6MTQ5OTcwMjkwN30.Fb4TJLN7VGzk3kKoIyrVGmz7CaxX_JP_ni42m2q_QSQ HTTP/1.1\" 302 74 \"https://xxxx.com/oxauth/auth/passport/passport-login\" \"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36\"","timestamp":"2017-07-10T15:44:27.867Z"}
{"level":"info","message":"::ffff:127.0.0.1 - - [10/Jul/2017:15:44:27 +0000] \"GET /passport/login HTTP/1.1\" 302 274 \"https://xxxx.com/oxauth/auth/passport/passport-login\" \"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36\"","timestamp":"2017-07-10T15:44:27.874Z"}
**I can't see anything else in the logs which indicate what the issue is.**
**For a successful github auth I get:
**
\"GET /passport/token HTTP/1.1\" 200 201 \"https://xxx.com/oxauth/auth/passport/passport-login\" \"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36\"","timestamp":"2017-07-10T15:56:28.367Z"}
{"level":"info","message":"::ffff:127.0.0.1 - - [10/Jul/2017:15:56:28 +0000] \"GET /passport/auth/github/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqd3QiOiJiZDk0NzA1ZS05M2RhLTRlMDUtYmUyMi1lNWNmNzM3NTZkODUiLCJpYXQiOjE0OTk3MDIxODgsImV4cCI6MTQ5OTcwMzYyOH0.QrRItFtu7dvS_4Xaan8vkq-v9MJ7ECy3sz9MDlY2kcM HTTP/1.1\" 302 0 \"https://xxxx.com/oxauth/auth/passport/passport-login\" \"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36\"","timestamp":"2017-07-10T15:56:28.381Z"}
{"level":"info","message":"**User authenticated withgithubStrategy **with userid: 23654022","timestamp":"2017-07-10T15:56:29.484Z"}
{"level":"info","message":"::ffff:127.0.0.1 - - [10/Jul/2017:15:56:29 +0000] \"GET /passport/auth/github/callback?code=6bb7982e860d1e4c2f11 HTTP/1.1\" 302 782 \"https://xxxx.com/oxauth/auth/passport/passport-login\" \"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36\"","timestamp":"2017-07-10T15:56:29.486Z"}
{"level":"info","message":"::ffff:127.0.0.1 - - [10/Jul/2017:15:57:01 +0000] \"GET /passport/token HTTP/1.1\" 200 201 \"https://xxxx.com/oxauth/auth/passport/passport-login\" \"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36\"","timestamp":"2017-07-10T15:57:01.227Z"}
{"level":"info","message":"::ffff:127.0.0.1 - - [10/Jul/2017:15:57:01 +0000] \"GET /passport/auth/github/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqd3QiOiI4OWU4ZTQwZi01ZWIyLTQ3NjItODkzZC1mYzE0NjQ1YWMwZjEiLCJpYXQiOjE0OTk3MDIyMjEsImV4cCI6MTQ5OTcwMzY2MX0.ucy9nzUyNVSOyO0OPmp14LCq3GKm9v_7Up1bq1tTxHg HTTP/1.1\" 302 0 \"https://xxxx.com/oxauth/auth/passport/passport-login\" \"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36\"","timestamp":"2017-07-10T15:57:01.238Z"}
{"level":"info","message":"User authenticated withgithubStrategy with userid: 23654022","timestamp":"2017-07-10T15:57:02.301Z"}
{"level":"info","message":"::ffff:127.0.0.1 - - [10/Jul/2017:15:57:02 +0000] \"GET /passport/auth/github/callback?code=793e30c9351101ed7d8a HTTP/1.1\" 302 782 \"https://xxxx.com/oxauth/auth/passport/passport-login\" \"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36\"","timestamp":"2017-07-10T15:57:02.303Z"}