I've been trying to implement the Silhouette library to provide some basic JWT authentication for my Angular frontend but am running into issues with a few No implementation for [...] was bound
errors. To provide some context, I am trying to authenticate an admin login, which only consists of a username and password. I am using this (with an added LoginInfo
field for Silhouette) to act as Silhouette's User
authentication repository, and my AdminService
also extends Silhouette's Identity Service
.
I followed along some example projects that implement a basic Silhouette environment, but I have not gotten past the guice compiler errors. After writing my SilhouetteModule
essentially verbatim what is in these example projects (this is the most recent one I could find), trying to inject even the CredentialsProvider
into my controller class results in a few guice CreationExceptions that couldn't find bound implementations. These errors occurred for the AuthInfoRepository
and the PasswordHasherRegistry
.
Thanks for the help! It's been difficult to track down this error, and even though looking at example projects has gotten me farther with implementing Silhouette, I am pretty stuck at this point.