harture
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
keycloak_client.go
|
|
|
@ -2,6 +2,7 @@ package keycloak |
|
|
|
|
|
|
|
import ( |
|
|
|
"encoding/json" |
|
|
|
"strconv" |
|
|
|
|
|
|
|
"fmt" |
|
|
|
"net/http" |
|
|
|
@ -41,7 +42,7 @@ type HTTPError struct { |
|
|
|
} |
|
|
|
|
|
|
|
func (e HTTPError) Error() string { |
|
|
|
return e.Message |
|
|
|
return strconv.Itoa(e.HTTPStatus) + ":" + e.Message |
|
|
|
} |
|
|
|
|
|
|
|
// New returns a keycloak client.
|
|
|
|
|