Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognized option "jku" under "jose.keys.test". Did you mean "jwk"? #164

Closed
marijnhurkens opened this issue Mar 8, 2019 · 3 comments
Closed

Comments

@marijnhurkens
Copy link

Describe the bug
When using the config for using a JKU key set I get an error that JKU is not a supported option.

To Reproduce
Steps to reproduce the behavior:

In httplu.yaml

httplug:
    plugins:
        cache:
            cache_pool: 'cache.app'
            config:
                default_ttl: 1800
    clients:
        jwk:
            factory: 'httplug.factory.guzzle6'
            plugins: ['httplug.plugin.cache']

In jose.yaml

jose:
    jku_factory:
        enabled: true
        client: 'httplug.client.jwk'
        request_factory: 'httplug.message_factory'
    keys:
        test:
            jku: # method
                url: '%env(TOEGANG_BASE_URI)%/oauth/certs'

Error:

(1/1) InvalidConfigurationExceptionUnrecognized option "jku" under "jose.keys.test". Did you mean "jwk"?

Installed package is the latest composer require web-token/jwt-framework (1.3.1).

Expected behavior
For the configuration to work.

Desktop (please complete the following information):
PHP 7.1, symfony 4.2

Thanks :)

@marijnhurkens
Copy link
Author

Okay just after posting I found out that the config is wrong, keys need to be key_sets.

So the docs here have a typo:
https://web-token.spomky-labs.com/symfony-bundle/key-and-key-set-management/key-set-management-jwkset#from-a-jku-jwk-url

@Spomky
Copy link
Member

Spomky commented Mar 8, 2019

Good catch!

I've just updated the page accordingly (see web-token/jwt-doc@ba4482c and web-token/jwt-doc@fcb7863)

@Spomky Spomky closed this as completed Mar 8, 2019
Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants