Get Access Token from Keycloak Authenticator

Hi,

Does there is another way to get access token than by API. I’m implementing an Authenticator and i would like to get an Access token from there.

Thanks,

Dan