What I am trying to achieve: User can sign in with our project's sign in page (within project) without redirection to keycloak's default login page. I have configured spring security with Keycloak it is working fine But user logs in through keycloak's default login page
My questions: how can i achieve this feature where I will get token from Keycloak using REST API like
curl \
-d "client_id=id-client" \
-d "username=username" \
-d "password=psw" \
-d "grant_type=password" \
-d "client_secret=secret" \
"http://localhost:8080/auth/realms/myRealmName/protocol/openid-connect/token"
and give access to my Spring Project (Spring security whatever)
As far as i understand I can log in using jquery in my front end and obtain token, eventually pass to spring security or whatever
Any help would be appreciated