This was a good article. The first section, explaining the reason why OAuth2 is a fit for certain data flow needs, was really strong. I liked the diagram of the flow as that made it clear what all the pieces were. I think that if you need that separation between your resource servers and authorization server, the OAuth dance can be a bit complicated, you can just use a simple api key. But as soon as you start to allo…
Thank you very much for the valuable feedback ... very much appreciate and pointers ... this why love to share so can get feedback and pointers for other information may have missed.
Understanding OAuth2 and OpenID Connect
41–50 of 65 posts
Re: Understanding OAuth2 and OpenID Connect
#42Are you implementing OAuth 2 or interested in learning more? I would highly recommend combing through the OAuth 2.1 spec [1] as it incorporates the “best practices” that were added to 2.0 through additional RFCs. [1] https://tools.ietf.org/html/draft-ietf-oauth-v2-1-00
Re: Understanding OAuth2 and OpenID Connect
#43I have wasted so much time on oAuth2 and OIDC the past month that I'm building a SaaS around it. (not wasted but took away time from the business) I would have really liked to use auth0 or other authn services but not a fan of lock-in platforms, I want to export my db without enterprise plans. The pricing model I'm thinking of is a pay per usage + a commission of the total usage per month. Thank you @sjroot
Have you looked at Keycloak like the article suggests? Always thought a SaaS around keycloak would be a good idea.
Re: Understanding OAuth2 and OpenID Connect
#44This was a good article. The first section, explaining the reason why OAuth2 is a fit for certain data flow needs, was really strong. I liked the diagram of the flow as that made it clear what all the pieces were. I think that if you need that separation between your resource servers and authorization server, the OAuth dance can be a bit complicated, you can just use a simple api key. But as soon as you start to allo…
Ack, this should have been
I think that if you do not need that separation between your resource servers and authorization server, ...
Re: Understanding OAuth2 and OpenID Connect
#45Re: Understanding OAuth2 and OpenID Connect
#46It's so simple I wrote (and abandoned) a golang library that implements v1[2]. I didn't need the proxy abilities in v2 (and doubt most orgs actually do) and I use JSON in some places before it was in the standard but it was very easy to implement and thus I can say it's easy to understand. I've meant to convert the project to Rust for a long time but at this point I'll probably never get to it.
[0]: https://apereo.github.io/cas/4.2.x/protocol/CAS-Protocol-Spe...
[1]: https://apereo.github.io/cas/4.2.x/protocol/CAS-Protocol.htm...
Re: Understanding OAuth2 and OpenID Connect
#47This was a good article. The first section, explaining the reason why OAuth2 is a fit for certain data flow needs, was really strong. I liked the diagram of the flow as that made it clear what all the pieces were. I think that if you need that separation between your resource servers and authorization server, the OAuth dance can be a bit complicated, you can just use a simple api key. But as soon as you start to allo…
Do you have any examples of Authorization servers in the wild doing this or front end SDKs that work with that?
I’m very curious, I’m doing an SPA security research project at work and I’m very interested in these stories and learning more.
I’ve seen some folks do refresh in an httponly cookie, and Access in the js space. I’ve seen another example (auth0) put the refresh token in a web worker and access token accessible in js.
And I’ve seen things like msal.js just say F it and make them all accessible to js.
Re: Understanding OAuth2 and OpenID Connect
#48Re: Understanding OAuth2 and OpenID Connect
#49In many apps, these login redirects happen inside the app window, hiding the url. And even if the URL isn’t hidden, there’s suddenly a browser window inside my app and many unconscious “security checks” fail to load.
I’d much rather have the OAuth provider send me an email or get a notification that can be actioned within the OAuth providers app so that I know I’m not giving my credentials to something that looks like the OAuth providers sign in page.