casdoor / casdoor-go-sdk

Go client SDK for Casdoor
https://github.com/casdoor/casdoor
Apache License 2.0
88 stars 74 forks source link

[Feature] How to getAccessToken without ui and with usersname and password using casdoor-go-sdk? #112

Closed radiorz closed 1 month ago

radiorz commented 6 months ago

references: https://casdoor.org/docs/how-to-connect/oauth/#resource-owner-password-credentials-grant

good to have this api in casdoor-go-sdk❤

casbin-bot commented 6 months ago

@tangyang9464 @JalinWang @imp2002

hsluoyz commented 1 month ago

@radiorz it's not part of this SDK. You should use a OAuth 2.0 library which supports Resource Owner Password Credentials Grant to do this