Skip to content

Commit

Permalink
If no authorization header is present, just serve the request
Browse files Browse the repository at this point in the history
  • Loading branch information
EjaYF committed Feb 27, 2024
1 parent 1310edd commit 44f1b1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rpthandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ func New(ctx context.Context, next http.Handler, config *Config, name string) (h
func (a *RptHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
var currentAuthHeader = req.Header.Get("Authorization")

if currentAuthHeader == "" {
a.next.ServeHTTP(rw, req)
return
}

data := url.Values{}
data.Set("grant_type", "urn:ietf:params:oauth:grant-type:uma-ticket")
data.Set("audience", a.audience)
Expand Down

0 comments on commit 44f1b1e

Please sign in to comment.