Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按照例子走不通的 #1

Closed
YeFatBoy opened this issue Nov 28, 2016 · 2 comments
Closed

按照例子走不通的 #1

YeFatBoy opened this issue Nov 28, 2016 · 2 comments

Comments

@YeFatBoy
Copy link

store.NewTestClientStore() not find();

我搬过来
clientStore := store.NewClientStore()
clientStore.Set("000000", &models.Client{
ID: "000000",
Secret: "999999",
Domain: "http://localhost",
})
manager.MapClientStorage(clientStore)

找个之后走的通,但是允许
http://localhost:9096/token?grant_type=client_credentials&client_id=000000&client_secret=000000&scope=read
会错误!请求把demo写的在详细一点点!

@LyricTian
Copy link
Member

范例说明已经修复,请查看https://github.com/go-oauth2/gin-server/blob/master/README.md。一个模拟授权码模式的完整范例请查看https://github.com/go-oauth2/oauth2/tree/master/example

@YeFatBoy
Copy link
Author

YeFatBoy commented Nov 29, 2016

@LyricTian 谢了!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants