Complete KeyCape service-token rollout
All checks were successful
Build and Publish Container Image / build-and-push (push) Successful in 25s

This commit is contained in:
tegwick 2026-07-27 20:17:55 +02:00
parent f4a2f7eb1e
commit 881fffc079
4 changed files with 26 additions and 11 deletions

View file

@ -182,7 +182,7 @@ func DefaultRegistry() *Registry {
reg.Register(UnsupportedFeature{
Name: "unknown_grant_type",
ErrorType: profileerrors.ErrFeatureNotSupported,
Description: "Only authorization_code and refresh_token grant types are supported.",
Description: "Only authorization_code and client_credentials grant types are supported.",
Detector: func(r *http.Request) bool {
if r.Method != http.MethodPost || !strings.HasSuffix(r.URL.Path, "/token") {
return false
@ -195,7 +195,7 @@ func DefaultRegistry() *Registry {
if gt == "" {
return false // no grant_type present; let the handler decide
}
return gt != "authorization_code" && gt != "refresh_token"
return gt != "authorization_code" && gt != "client_credentials"
},
})