Removed debug logs
This commit is contained in:
		
							parent
							
								
									012c155d2a
								
							
						
					
					
						commit
						16cfb49fc1
					
				| 
						 | 
				
			
			@ -3,7 +3,6 @@ package providers
 | 
			
		|||
import (
 | 
			
		||||
	"bytes"
 | 
			
		||||
	"context"
 | 
			
		||||
	"encoding/json"
 | 
			
		||||
	"errors"
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"net/url"
 | 
			
		||||
| 
						 | 
				
			
			@ -117,9 +116,6 @@ func (p *ProviderData) EnrichSession(_ context.Context, _ *sessions.SessionState
 | 
			
		|||
// Authorize performs global authorization on an authenticated session.
 | 
			
		||||
// This is not used for fine-grained per route authorization rules.
 | 
			
		||||
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 {
 | 
			
		||||
		var _, ok = p.AllowedACRs[s.Acr]
 | 
			
		||||
		if !ok {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue