我正在尝试使用通行证js向IBMid进行认证。
但是,我不断收到以下错误消息:
XML语法错误第1行第1列
500错误:无法建立背面连接
我使用以下示例(更改了凭据,重定向url等)
https://github.com/osipov/ibm-sso-nodejs-sample/blob/master/main.js
我也尝试了这个: app.js
const express = require('express');
const authRoutes = require('./routes/auth-routes');
const app = express();
const https = require('https');
const fs = require ('fs');
const options = {
key: "mykey",
cert: "mycert"};
const passportSetup = require('./config/passport-setup');
app.set('view engine': 'ejs');
app.use('/auth', authRoutes);
app.get('/', (req, res) => {
res.render("home");});
app.listen(6110, () => {
console.log("listenning");});
https.createServer(options, app).listen(6111);