Browse Source

style: fix gci formatting in handlers and handlers_test

Signed-off-by: Mathias Gebbe <mathias.gebbe@gmail.com>
pull/4583/head
Mathias Gebbe 1 month ago
parent
commit
21d7739692
No known key found for this signature in database
GPG Key ID: 2A35E2EC75E5438F
  1. 2
      server/handlers.go
  2. 16
      server/handlers_test.go

2
server/handlers.go

@ -1481,7 +1481,7 @@ func (s *Server) handleClientCredentialsGrant(w http.ResponseWriter, r *http.Req
// Validate scopes.
var (
unrecognized []string
unrecognized []string
invalidScopes []string
)
hasOpenIDScope := false

16
server/handlers_test.go

@ -649,14 +649,14 @@ func TestHandlePasswordLoginWithSkipApproval(t *testing.T) {
func TestHandleClientCredentials(t *testing.T) {
tests := []struct {
name string
clientID string
clientSecret string
scopes string
wantCode int
wantAccessTok bool
wantIDToken bool
wantUsername string
name string
clientID string
clientSecret string
scopes string
wantCode int
wantAccessTok bool
wantIDToken bool
wantUsername string
}{
{
name: "Basic grant, no scopes",

Loading…
Cancel
Save