mapfish-print icon indicating copy to clipboard operation
mapfish-print copied to clipboard

credentials ignored

Open AleMScof opened this issue 7 years ago • 2 comments

Hi there! I am new mapfish as a standalone service but i've been using version 2.1.3 as a print-lib extension in geoserver.

I'd like to have some more information about how to pass credentials to a geoserver private layer(Using MapFish v3).

i am using the following yaml conf:

credentials:

  - !credential
    matchers:
      - !localMatch {}
      - !ipMatch
        ip : myip
    password: pass
    username: user

My configuration is actually quite easy there's an apache server forwarding request to a tomcat container where Geoserver and Mapfish stands together, anyway even with credentials set geoserver keeps failing authentication from mapfish request, any ideas? Do i have to write any path regex into mapfish dnsMatch or ipMatch?Unluckyly, I haven't found any examples about basic authentication.

Thanks, A.

AleMScof avatar Nov 03 '18 16:11 AleMScof

Guys any updates on this?

I have the exact same problem, credentials for local calls are ignored, basically, I'm not able to make calls to GeoServer to load layers that need auth from mapfish print.

my config:

credentials:
  - !credential
      matchers:    
        - !dnsMatch
          host: our.local.dns.com
          port: -1
        - !localMatch  
          port: -1
      username: someuser
      password: somewd
  - !credential
      matchers:
        - !dnsMatch
          host: some.domain.call.com
      username: user
      password: pwd

the some.domain.call.com works, but our.local.dns.com and !localMatch does not

Gutek avatar Nov 24 '20 15:11 Gutek