equal
deleted
inserted
replaced
27 |
27 |
28 hdrs := make(map[string]string) |
28 hdrs := make(map[string]string) |
29 opts := make(map[string]string) |
29 opts := make(map[string]string) |
30 |
30 |
31 hdrs["User-Agent"] = "Gondole/" + GondoleVersion |
31 hdrs["User-Agent"] = "Gondole/" + GondoleVersion |
32 hdrs["Authorization"] = "Bearer " + g.Secret |
|
33 |
32 |
34 opts["grant_type"] = "password" |
33 opts["grant_type"] = "password" |
35 opts["client_id"] = g.ID |
34 opts["client_id"] = g.ID |
36 opts["client_secret"] = g.Secret |
35 opts["client_secret"] = g.Secret |
37 opts["username"] = username |
36 opts["username"] = username |