Error Testing sample JWT validation authenticator

Im using the config in the docs : to setup a simple JWT validator but it is giving the error ?

‘The matched rule uses a feature which is not enabled in the server configuration’

Note I have added spaces in the config below in the URLs as i cannot add URLs to this post as a new user.

The server config section for jwt is ;

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

    - http ://x.x.x.x:8080/auth/realms/Developer/protocol/openid-connect/certs
  scope_strategy: none
    - profile
    - email
    - account 
    - http ://x.x.x.x:8080/auth/realms/Developer
    - RS256
    header: Authorization
    # or
    # query_parameter: auth-token
    # or
    # cookie: auth-token

And the simple rule is ;

“id”: “standard-jwt”,
“upstream”: {
“url”: “https ://”
“match”: {
“url”: “http ://<|localhost>:4455/auth/jwt”,
“methods”: [
“authenticators”: [{
“handler”: “jwt”,
“config”: {
“required_scope”: [“profile”],
“target_audience”: [“account”],
“trusted_issuers”: [“http ://x.x.x.x:8080/auth/realms/Developer”]
“authorizer”: { “handler”: “allow” },
“mutators”: [{ “handler”: “noop” }]

Seems so simple - how can I get more info from oathkeeper on the issue ?

It was a simple config change - the scope strategy had been set default none …

Corrected by

scope_strategy: exact

Now the rule works

Glad you were able to figure it out! If you have any ideas how to improve the docs there please make suggestions :slight_smile: