Redirection for SAML Client


I’m now integrating Gitlab with Keycloak SSO using SAML (I have to use SAML instead of OIDC).

I set up correctly, so I am able to login to gitlab using keycloak login page. But, I need to use REST API for login.

As I investigate, getting access token api exists only for OIDC not for SAML.

As I observe the behavior of keycloak login page, it seems that it redirect to below address.


Question 1. How could I get session_code and execution through REST API?

Question 2. Is there any way to redirect to the service for SAML client?

Thanks in advance.