Closed thiemogries closed 9 months ago
I think #3284 introduced a new bug where oauth.origins / oauth.redirect is ignored for failed authentication requests.
oauth.origins
oauth.redirect
Moving the error check inside the try ... catch block fixes it for me but I don't know if this reintroduces some problems from #3275 #3266 #3276
try ... catch
@feathersjs/authentication-oauth/src/service.ts
try { if (payload.error) { throw new OAuthError(payload.error_description || payload.error, payload) } debug(`Calling ${authService}.create authentication with strategy ${name}`) ... } catch (error: any) { const location = await strategy.getRedirect(error, authParams) ... }
You are totally right. I was so sure I had it in the block where it is supposed to be. Will be fixed in the next release via #3297
I think #3284 introduced a new bug where
oauth.origins
/oauth.redirect
is ignored for failed authentication requests.Steps to reproduce
Expected behavior
oauth.redirect
url (with the error message)Actual behavior
Moving the error check inside the
try ... catch
block fixes it for me but I don't know if this reintroduces some problems from #3275 #3266 #3276@feathersjs/authentication-oauth/src/service.ts