Open adriendomoison opened 5 years ago
I added an example of the use of password mode and client mode, you can check it out:https://github.com/go-oauth2/oauth2/tree/master/example
@LyricTian Wow, that's awesome! This really changes the game thanks! I understand now at a glance how this implemetation of OAuth is built. I am impressed about how clean this is and how minimum work is required to implement a server 👍
Do you have a working example using gorm ? i tried to combine example using buntDB and example in mysql but i've always get message Response Error: unsupported_grant_type
I added an example of the use of password mode and client mode, you can check it out:https://github.com/go-oauth2/oauth2/tree/master/example
def not working with code flow
I am trying to implement all the OAuth2 authentication methods under the same program, but I am having an issue by just adding the
Client Credential
method to theexample/server.go
. When adding these two lines from your example in thereadme
to theexample/server.go
, theAuthorization Code
flow doesn't work anymore.And if I remove the 2 lines
Authorization Code
is working again butClient Credentials
fails of course.So, either the
Client Credential
flow works, either theAuthorization Code
flow.Can you advise on what is going on?
I think it would be great if you had a working server example with all the authentication method working together, this would make this open source oauth2 package far ahead from the other ones.
Thank you!