From dd99358f8fb33e70dfb72ad01df684713265b876 Mon Sep 17 00:00:00 2001 From: vx3r Date: Thu, 30 Apr 2020 17:11:23 +0900 Subject: [PATCH] issue #27 #38 clients list view and search --- auth/oauth2oidc/oauth2oidc.go | 9 - ui/src/components/Clients.vue | 328 +++++++++++++++++++++------------- 2 files changed, 199 insertions(+), 138 deletions(-) diff --git a/auth/oauth2oidc/oauth2oidc.go b/auth/oauth2oidc/oauth2oidc.go index b50444a..6976800 100644 --- a/auth/oauth2oidc/oauth2oidc.go +++ b/auth/oauth2oidc/oauth2oidc.go @@ -74,15 +74,6 @@ func (o *Oauth2idc) UserInfo(oauth2Token *oauth2.Token) (*model.User, error) { return nil, err } - type UserInfo struct { - Subject string `json:"sub"` - Profile string `json:"profile"` - Email string `json:"email"` - EmailVerified bool `json:"email_verified"` - - claims []byte - } - // ID Token payload is just JSON var claims map[string]interface{} if err := userInfo.Claims(&claims); err != nil { diff --git a/ui/src/components/Clients.vue b/ui/src/components/Clients.vue index 57cd215..6d16b75 100644 --- a/ui/src/components/Clients.vue +++ b/ui/src/components/Clients.vue @@ -1,136 +1,195 @@