You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFAIK, the main grant_types for this case are password and client_credentials.
For password, based on this article, we need username and password mostly. We can send client_id but in this case, we need to send client_secret (Either in query param or HTTP Basic Auth header). In Keycloak, if the client is confidential, then we need all 4 params.
For client_credentials, based on this, we need to send client_id and client_secret (Either in query param or HTTP Basic Auth header).
So we lack client_secret here. And the whole logic to choose between grant_types is missing. Or we need to remove client_id from here, since we have another struct (KeycloakServiceAccountAdminTokenRetriever) for this or any other solution.
And also it can be better to have an enum for grant_types, instead of just a string.
The text was updated successfully, but these errors were encountered:
To continue the discussion here and here...
AFAIK, the main
grant_type
s for this case arepassword
andclient_credentials
.For
password
, based on this article, we needusername
andpassword
mostly. We can sendclient_id
but in this case, we need to sendclient_secret
(Either in query param or HTTP Basic Auth header). In Keycloak, if the client isconfidential
, then we need all 4 params.For
client_credentials
, based on this, we need to sendclient_id
andclient_secret
(Either in query param or HTTP Basic Auth header).The current implementation is like this:
So we lack
client_secret
here. And the whole logic to choose between grant_types is missing. Or we need to removeclient_id
from here, since we have another struct (KeycloakServiceAccountAdminTokenRetriever
) for this or any other solution.And also it can be better to have an enum for grant_types, instead of just a string.
The text was updated successfully, but these errors were encountered: