First version of authentication SPI with support for model and external-model