Simple Web API Server in Golang (2)

In this challenge, I tried to implement a simple OAuth2 server basing on Simple Web API Server in [1].

For OAuth2, go to http://oauth.net/2/.

OAuth2 diagram

 

Endpoint

  • /api/2/domains/{domain name}/oauth/access_token
  • Use port 80. We would like to use other ports such as 8080 for testing
    • You could use the same port used for proxyauth endpoint
    • Https is required for OAuth2 but we don’t use it for this challenge

 

(to be continued...)

 

[1] Simple Web API Server : http://www.topcoder.com/challenge-details/30046011/?type=develop&noncache=true

[2] OAuth2 Server : http://www.topcoder.com/challenge-details/30046224/?type=develop

[3] git : https://coding.net/u/huys03/p/SimpleWebAPIServer/git

本文来自:博客园

感谢作者:huys03

查看原文:Simple Web API Server in Golang (2)

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。