sst / ion

SST v3
https://sst.dev
MIT License
1.57k stars 200 forks source link

feature: Auth component #90

Open fwang opened 5 months ago

fwang commented 5 months ago

Requests:

ION-227

jsadoski-rockhall commented 3 weeks ago

This is a blocker for our v3 upgrade.

beeirl commented 2 weeks ago

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.