auth

Paddy 2015-01-18 Parent:e000b1c24fc0 Child:823517aad893

118:565a9335e035 Go to Latest

auth/client.go

Fix bug when issuing client secret. Client secrets were only issued to public clients, not only to confidential clients. Oops.

History
     1.1 --- a/client.go	Sun Jan 18 01:25:15 2015 -0500
     1.2 +++ b/client.go	Sun Jan 18 01:54:11 2015 -0500
     1.3 @@ -401,7 +401,7 @@
     1.4  		Website: req.Website,
     1.5  		Type:    req.Type,
     1.6  	}
     1.7 -	if client.Type == clientTypePublic {
     1.8 +	if client.Type == clientTypeConfidential {
     1.9  		secret := make([]byte, 32)
    1.10  		_, err = rand.Read(secret)
    1.11  		if err != nil {