IDCI-Consulting / IDCIKeycloakSecurityBundle

Other
46 stars 46 forks source link

Unrecognized options "provider_class, provider_options" under "knpu_oauth2_ !! client/clients/keycloak". #37

Closed amerchDev closed 7 months ago

amerchDev commented 7 months ago

checked out copy of base symfony-docker rolled back symfony version to 6.4 and tried to install this package results in this error as soon as keycloak client config is added to knpu_oauth2_client.yaml

Unrecognized options "provider_class, provider_options" under "knpuoauth2
!! client/clients/keycloak". Available options are "auth_serverurl", "client
!! id", "client_secret", "encryption_algorithm", "encryption_key", "encryption
!! _key_path", "realm", "redirect_params", "redirect_route", "use_state", "ver
!! sion".

relevant version from composer.json

    "idci/keycloak-security-bundle": "*",
    "knpuniversity/oauth2-client-bundle": "^2.18",
    "stevenmaguire/oauth2-keycloak": "^5.1",

the issue appears to stem from whats happening in IDCIKeycloakSecurityExtension.generateKeycloakAuthConfiguration

amerchDev commented 7 months ago

this can be closed i realized i didn't need the other plugin and removing the duplicate removed the error