If you like diagrams, I've found that @darutk on Medium has some really good explanations of Oauth2 and OpenID. Example: https://medium.com/@darutk/diagrams-of-all-the-openid-connec...
Also look at their nice django-oauth-server: https://github.com/authlete/django-oauth-server