Removed debug logs
This commit is contained in:
parent
012c155d2a
commit
16cfb49fc1
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue