EsperoTech / yaade

Yaade is an open-source, self-hosted, collaborative API development environment.
MIT License
1.6k stars 71 forks source link

Keycloak authentication "Not Found: {\"error\":\"Unable to find matching targe" #187

Closed deebify closed 3 months ago

deebify commented 3 months ago

I tried to connect to keycloak using the following provider below but I got unable to find matching targe

image

{
    "providers": [
        {
            "id": "keycloak",
            "label": "Keycloak SSO Login",
            "provider": "keycloak",
            "params": {
                "site": "http://xxxxxxxxxxx:8080/auth/realms/xxxx",
                "clientId": "xxxxxxxxxx",
                "clientSecret": "xxxxxxxxx",
                "callbackUrl": "http://localhost:9339/keycloak",
                "fields": {
                    "username": "/preferred_username"
                },
                "scopes": ["openid"]
            }
        }
    ]
}
jonrosner commented 3 months ago

can you provide a minimal reproducible example? how did you start keycloak?

jonrosner commented 3 months ago

It seems like they dropped the /auth from the .well-known URLs. So try removing it and doing the same flow again. Also you are missing some fields.

jonrosner commented 3 months ago

I will close this one due to inactivity. You can reopen the issue if you tried the above step and it still didn't work.