Browser APIs have gotten so much better lately! Way easier to do @oauth_2 PKCE in a browser now: ✅ good random number generators ✅ secure hashing functions Just missing a good base64 encoding function. (Check out the ugly hack in the post.) developer.okta.com/blog/2019…

May 2, 2019 · 3:25 PM UTC

2
1
3
Replying to @aaronpk @oauth_2
In the process of changing how we authorize the users in our web app and I’m wondering what route to take. Do you know about any simple proxy-like services for Oauth 2 Auth code flow (not OIDC) that can keep sessions and handle Auth for any SPA ?
1
Plenty of server-side frameworks can do this, I'm not sure about something as a service though. Also not sure if you'd really want to go down the path of offloading that kind of thing to a different site either.
1
Replying to @aaronpk @oauth_2
This could save you 4 characters ;)) return btoa(encodeURIComponent(str) .replace(/%([0-9A-F]{2})/g, (m, p1) => String.fromCharCode(parseInt(('0x'+p1), 16))));