About jwt authenticators

the config.yaml follow this:

serve:
  api:
    port: 4456 # run the proxy at port 4455
  proxy:
    port: 4455 # run the api at port 4456
    cors: 
      enabled: true

access_rules:
  repositories:
    - file:///app/config/rules/rules.json

authenticators:
  noop:
    enabled: true

  jwt:
    enabled: true
    config: 
      jwks_urls:
        - file:///app/config/jwt/jwks.json
        
authorizers:
  allow:
    enabled: true
      
  deny:
    enabled: true
    
mutators:
  noop:
    enabled: true

the jwks.json is from https://github.com/ory/oathkeeper/blob/master/.docker_compose/jwks.json

I use kratos login api got a session token,then try to use this token visit oathkeeper proxy:


the error reason is “token contains an invalid number of segments”.
Is there a problem with the configuration?

The Kratos token is not a JWT! You need the session check authenticator