It was design to work with etcd2 which is outdated. So I rewrite it for etcd3.
There is a major trick that did not mentioned at README.md.
You have to load default data make 4 scenarios work.
go-oauth2-server loaddata oauth/fixtures/roles.yml
go-oauth2-server loaddata oauth/fixtures/scopes.yml
test users (default password: test_password)
go-oauth2-server loaddata oauth/fixtures/test_users.yml
go-oauth2-server loaddata oauth/fixtures/test_clients.yml
test access tokens
go-oauth2-server loaddata oauth/fixtures/test_access_tokens.yml
With these, it works.
If you are not running at source directory, make sure you have copy the web directory to your working directory. (Of course, you don’t need *.go within web directory).
There is only git 1.7.x for CentOS 6. I am trying to build something with golang then founds out that “go get” cannot working correctly with older git. But I cannot find git binary new enough. So I build one from source. Why did I take note on this?
There are some missing link.
First get all dependencies
yum install perl cpio curl curl-devel zlib-devel openssl-devel expat-devel gettext-devel gcc perl-ExtUtils-MakeMaker
Generate configure executable
Config build environment and binary prefix, I have manage to install git to /usr/local/bin
Now, let’s build it.
Check if your installed binary have higher priority at PATH. If not, make sure you have put /usr/local/bin in front of /usr/bin(where old git binary located).
Last think to check, check git version.
If you git the version number you want to see. You made it. I am running on “git 2.11.0 rc2”.