```serve: proxy: port: 4455 # run the proxy ...
# talk-oathkeeper
s
Copy code
serve:
  proxy:
    port: 4455 # run the proxy at port 4455
  api:
    port: 4456 # run the api at port 4456

access_rules:
  matching_strategy: regexp
  repositories:
    - file:///rules.json

errors:
  fallback:
    - json
  handlers:
    json:
      enabled: true
      config:
        verbose: true
    redirect:
      enabled: true
      config:
        to: <https://www.ory.sh/docs>

mutators:
  noop:
    enabled: true
  header:
    enabled: true
    config:
      headers:
        X-User: '{{ print .Subject }}'
        # You could add some other headers, for example with data from the
        # session.
        # X-Some-Arbitrary-Data: "{{ print .Extra.some.arbitrary.data }}"

 # id_token:
  #  enabled: true
   # config:
    #  issuer_url: <http://localhost:4455/>
     # jwks_url: file:///jwks.json

authorizers:
  allow:
    enabled: true
  deny:
    enabled: true

authenticators:
  bearer_token:
    # Set enabled to true if the authenticator should be enabled and false to disable the authenticator. Defaults to false.
    enabled: true

    config:
      #check_session_url: <http://127.0.0.1:9971/auth/whoami>
      check_session_url: <https://stoic-herschel-1f9l4wh4r0.projects.oryapis.com/sessions/whoami>
      token_from:
        header: Authorization
      preserve_path: true
      additional_headers:
        accept: application/json
      #extra_from: "@this"
      #subject_from: "identity.id"
      #preserve_query: true
  #anonymous:
   # enabled: true
    #config:
     # subject: guest
d
I think that changing
additional_headers
from this
Copy code
additional_headers:
        accept: application/json
to this
Copy code
additional_headers:
        accept-encoding: identity
should solve the issue
Another thing is that you use bearer authenticator however you should use
cookie_session
s
Actually, i am using postman and bearer token
could you please share the configuration for bearer token authenticator?
d
it’s the same configuration for bearer token
s
ok
thank you Andrew