refactor: remove utils pkg
BREAKING CHANGE: utils package has been removed in favor of specific new packages (http, crypto, strings)
This commit is contained in:
parent
251c476e17
commit
0ab5ea5a57
40 changed files with 131 additions and 126 deletions
|
@ -6,7 +6,7 @@ import (
|
|||
|
||||
"gopkg.in/square/go-jose.v2"
|
||||
|
||||
"github.com/caos/oidc/pkg/utils"
|
||||
httphelper "github.com/caos/oidc/pkg/http"
|
||||
)
|
||||
|
||||
type KeyProvider interface {
|
||||
|
@ -22,8 +22,8 @@ func keysHandler(k KeyProvider) func(http.ResponseWriter, *http.Request) {
|
|||
func Keys(w http.ResponseWriter, r *http.Request, k KeyProvider) {
|
||||
keySet, err := k.GetKeySet(r.Context())
|
||||
if err != nil {
|
||||
utils.MarshalJSONWithStatus(w, err, http.StatusInternalServerError)
|
||||
httphelper.MarshalJSONWithStatus(w, err, http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
utils.MarshalJSON(w, keySet)
|
||||
httphelper.MarshalJSON(w, keySet)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue