-
Notifications
You must be signed in to change notification settings - Fork 593
Closed
Description
Hello,
While trying to get your lib working on my project, I saw that using Server.HandleTokenRequest with no secret leads to a valid token being generated. See the attached picture as a proof.
I used a sample configuration to get it to work:
manager := manage.NewDefaultManager()
manager.MustTokenStorage(store.NewMemoryTokenStore())
clientStore := store.NewClientStore()
clientStore.Set("000000", &models.Client{
ID: "000000",
Secret: "999999",
Domain: "http://localhost",
})
manager.MapClientStorage(clientStore)
srv := server.NewDefaultServer(manager)Notes: Giving a bad secret results in an error being thrown. But no secret works.
Metadata
Metadata
Assignees
Labels
No labels