Articles Tagged oauth
This is a well known topic, but i can't find the existing solution that will fully satisfy me. So i write it by myself :).
Assume we have a "single page" web site, that is talking with backend via REST API. Client side can be written with ember, angularjs or some like this. Backend - django rest framework (DRF). We've got a task - add social login (OAuth protocol).
How it will look like in case ...
OAuth protocol has two versions: 1.0 and 2.0.
Most of services today use version 2.0, i suppose because it is easier to implement. Also, 2.0 can be realized in standalone applications (those, that don't have a server).
To understand the protocols very useful to have a look at their realisation. Here i'll show several scripts that talk to OAuth providers of different versions. Scripts will implement client application ...