New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAuth with OKTA work but I receive a ECONNREFUSED 127.0.0.1:80 just after the token and finally auth fail #2440
Comments
Additional information : I try to have a web page running on 127.0.0.1:80 class OktaStrategy extends OAuthStrategy {
return await super.findEntity(username, params); |
Hi! Did you manage to solve this or find out where the issue is coming from? We're facing the exact same situation here |
Yes I have a working solution, but I d'nt remember what I do exactly (it was I long time now) seems I have no specific code regarding profile_url... so could be a standard param async getProfile(data: any, params: any) {
} async findEntity(username: any, params: any) {
} |
This should also be working now with the new v5 oAuth |
Steps to reproduce
I've already implement google, auth0 OAuth authetication and I have difficulties with okta
Here a part of default.json
"oauth": {
"redirect": "http://localhost:8080/sso/",
},
Actual behavior
Seems the auth process is working on okta side, here some debug
@feathersjs/authentication-oauth/express Calling undefined.create authentication with strategy okta +8m
@feathersjs/authentication/base Running authenticate for strategy okta [ 'okta' ] +5ms
@feathersjs/authentication-oauth/strategy getProfile of oAuth profile from grant-profile with {
strategy: 'okta',
id_token: {
header: {
kid: 'RfB8iJHozLYMk1YvXsqlPqGDkMF4MHe8LR7KLWOyYmI',
alg: 'RS256'
},
payload: {
sub: '00u1m3gs53QQKdSyO5d7',
name: 'Devops Visult',
email: 'devops@visult.io',
ver: 1,
iss: 'https://dev-xxxxxxx.okta.com',
aud: '0oa1m4au4c74Xz2gH5d7',
iat: 1630313832,
exp: 1630317432,
jti: 'ID.blablabla',
amr: [Array],
idp: '0someid',
preferred_username: 'devops@visult.io',
auth_time: 1630305434,
at_hash: 'gKTe9cY79_5gj8-TVDNrGg'
},
signature: 'BKIc...A'
},
access_token: 'eyJra...mfbPg',
raw: {
token_type: 'Bearer',
expires_in: 3600,
access_token: 'eyJra...bPg',
scope: 'openid profile email',
id_token: 'eyJ...A'
}
} +8m
But just after
@feathersjs/authentication-oauth/express Received oAuth authentication error Error: connect ECONNREFUSED 127.0.0.1:80
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) +16ms
Then the auth process return a failure to the client (localhost:8080)
The text was updated successfully, but these errors were encountered: