View | Details | Raw Unified | Return to bug 33708
Collapse All | Expand All

(-)a/Koha/REST/V1/Auth.pm (-3 / +2 lines)
Lines 81-88 sub under { Link Here
81
                "Configuration prevents the usage of this endpoint by unprivileged users");
81
                "Configuration prevents the usage of this endpoint by unprivileged users");
82
        }
82
        }
83
83
84
        if ( $c->req->url->to_abs->path eq '/api/v1/oauth/token' ) {
84
        if ( $c->req->url->to_abs->path =~ m#^/api/v1/oauth/# || $c->req->url->to_abs->path =~ m#^/api/v1/public/oauth/#) {
85
            # Requesting a token shouldn't go through the API authentication chain
85
            # Requesting OAuth endpoints shouldn't go through the API authentication chain
86
            $status = 1;
86
            $status = 1;
87
        }
87
        }
88
        elsif ( $namespace eq '' or $namespace eq '.html' ) {
88
        elsif ( $namespace eq '' or $namespace eq '.html' ) {
89
- 

Return to bug 33708