Comments (4)
Me either... same problem..
from simple-sso.
Kindly provide the complete error log that is coming in the console.
from simple-sso.
me too, here's the log from console :
GET / 302 8.315 ms - 210
{
message: 'Request failed with status code 403',
error: Error: Request failed with status code 403
at createError (/Users/zhen/Documents/Development/sample-sso/sso-consumer-2/node_modules/axios/lib/core/createError.js:16:15)
at settle (/Users/zhen/Documents/Development/sample-sso/sso-consumer-2/node_modules/axios/lib/core/settle.js:18:12)
at IncomingMessage.handleStreamEnd (/Users/zhen/Documents/Development/sample-sso/sso-consumer-2/node_modules/axios/lib/adapters/http.js:202:11)
at IncomingMessage.emit (events.js:326:22)
at endReadableNT (_stream_readable.js:1223:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
config: {
adapter: [Function: httpAdapter],
transformRequest: [Object],
transformResponse: [Object],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
validateStatus: [Function: validateStatus],
headers: [Object],
method: 'get',
url: 'http://auth.portal.com:3010/simplesso/verifytoken?ssoToken=KVwwklY6olH7r494XVymtxEolE7',
data: undefined
},
request: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 6,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [Socket],
connection: [Socket],
_header: 'GET /simplesso/verifytoken?ssoToken=KVwwklY6olH7r494XVymtxEolE7 HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Authorization: Bearer l1Q7zkOL59cRqWBkQ12ZiGVW2DBL\r\n' +
'User-Agent: axios/0.18.1\r\n' +
'Host: auth.portal.com:3010\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: noopPendingOutput],
agent: [Agent],
socketPath: undefined,
method: 'GET',
insecureHTTPParser: undefined,
path: '/simplesso/verifytoken?ssoToken=KVwwklY6olH7r494XVymtxEolE7',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'auth.portal.com',
protocol: 'http:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
response: {
status: 403,
statusText: 'Forbidden',
headers: [Object],
config: [Object],
request: [ClientRequest],
data: [Object]
}
}
}
GET /?ssoToken=KVwwklY6olH7r494XVymtxEolE7 500 57.650 ms - 35
from simple-sso.
@kazhuyo The log shows you have a permission issue.
message: 'Request failed with status code 403',
Try to check if the Consumer URL has proper access in the controller
in case you are using different consumers.
https://github.com/kazhuyo/simple-sso/blob/master/sso-server/controller/index.js
Different consumers need to be explicitly allowed.
from simple-sso.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-sso.