Open fwang opened 5 months ago
This is a blocker for our v3 upgrade.
Would be great to make the current adapters a bit more flexible:
CodeAdapter
Proper error handling for expired authorization
cookie i.e.
- if (!authorization) throw new UnknownStateError();
+ if (!authorization) return ctx.forward(c, await config.onCodeExpired(c.req.raw))
OauthAdapter
Make the underlying openid-client
configurable for custom oauth providers that require a different config.
Happy to open a PR but not sure if it's worth because I am assuming that the implementation might change anyway once you fully release that component.
Edit: enabling connect callbacks would be also really helpful.
Requests:
ION-227