2 ms·
When I stopped using libraries and implemented my own things got a lot less frustrating. Still a pain in the ass, but I didn’t feel like the errors came out of
by Aeolun 4y ago
When I stopped using libraries and implemented my own things got a lot less frustrating. Still a pain in the ass, but I didn’t feel like the errors came out of nowhere any more anyway.
- magicalhippo 4y agoYeah I've just implemented it myself. Google, Microsoft and some other OIDC provider. I abstracted it away behind a "token provider" interface, so I can just instantiate the right one for the job. There's some incantations to get the request right, but I found most documentation decent so just follow that. One service required I implemented RFC 8693 token exchange, which turned out to be trivial since I could represent it as one "token provider" instance wrapping another. Failures can still be opaque though, especially when using the tokens.