feat: authorize via clientId and clientSecret

Signed-off-by: Kininaru <shiftregister233@outlook.com>
This commit is contained in:
Kininaru
2021-06-06 17:27:03 +08:00
parent ec5a574ce6
commit 56be5f9a51
3 changed files with 20 additions and 3 deletions

View File

@ -116,7 +116,7 @@ func GetApplicationByUser(user *User) *Application {
return GetApplicationByOrganizationName(user.Owner)
}
func getApplicationByClientId(clientId string) *Application {
func GetApplicationByClientId(clientId string) *Application {
application := Application{}
existed, err := adapter.Engine.Where("client_id=?", clientId).Get(&application)
if err != nil {