Using OAuth 2.0 or Basic Auth
Please use OAuth 2.0 or HTTP Basic Auth. We think that writing another one OAuth guide would be waste of time, so if you need it, just use existing one, eg. https://developer.github.com/v3/oauth/
Remember to use correct endpoint URLs:
Access Token URL | https://strimoid.pl/oauth2/token |
Authorization URL | https://strimoid.pl/oauth2/authorize |