login.go
changeset 119 22c8c58ad61b
parent 107 f0db7634e540
child 123 9b566c020a17
equal deleted inserted replaced
118:d9c798e09f0a 119:22c8c58ad61b
    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