User session creation in keycloak through program or SPI for SAML client

I have a SAML client, for which I have to create user session through any program or SPI without asking user to enter the credentials on login page.