Skip to content

Commit 44f1b1e

Browse files
committed
If no authorization header is present, just serve the request
1 parent 1310edd commit 44f1b1e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rpthandler.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ func New(ctx context.Context, next http.Handler, config *Config, name string) (h
5757
func (a *RptHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
5858
var currentAuthHeader = req.Header.Get("Authorization")
5959

60+
if currentAuthHeader == "" {
61+
a.next.ServeHTTP(rw, req)
62+
return
63+
}
64+
6065
data := url.Values{}
6166
data.Set("grant_type", "urn:ietf:params:oauth:grant-type:uma-ticket")
6267
data.Set("audience", a.audience)

0 commit comments

Comments
 (0)