mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
feat: authorize via clientId and clientSecret
Signed-off-by: Kininaru <shiftregister233@outlook.com>
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user