Removed debug logs

This commit is contained in:
SamTV12345 2024-11-20 18:03:22 +01:00 committed by Jan Larwig
parent 012c155d2a
commit 16cfb49fc1
1 changed files with 0 additions and 4 deletions

View File

@ -3,7 +3,6 @@ package providers
import ( import (
"bytes" "bytes"
"context" "context"
"encoding/json"
"errors" "errors"
"fmt" "fmt"
"net/url" "net/url"
@ -117,9 +116,6 @@ func (p *ProviderData) EnrichSession(_ context.Context, _ *sessions.SessionState
// Authorize performs global authorization on an authenticated session. // Authorize performs global authorization on an authenticated session.
// This is not used for fine-grained per route authorization rules. // This is not used for fine-grained per route authorization rules.
func (p *ProviderData) Authorize(_ context.Context, s *sessions.SessionState) (bool, error) { func (p *ProviderData) Authorize(_ context.Context, s *sessions.SessionState) (bool, error) {
println("ACR level is", s.Acr)
bs, _ := json.Marshal(p.AllowedACRs)
fmt.Println("Current configured acr is", string(bs))
if len(p.AllowedACRs) > 0 { if len(p.AllowedACRs) > 0 {
var _, ok = p.AllowedACRs[s.Acr] var _, ok = p.AllowedACRs[s.Acr]
if !ok { if !ok {