Custom Authentication for Admin UI

Hi All,

I just started to work with Pimcore and I have a custom development to achieve the following scenarios.

  1. Authenticate user via an external API. Basically when a user submits their username and password in admin UI, I need to send the credentials to an external API and verify.
  2. Authenticate user via an access token. This is similar to SSO. I need to verify the query param token in the pimcore db or via an external API.

I tried to implement the second scenario by going through the following article but it didn’t work for me and getting this error. Not configuring explicitly the provider for the “guard” listener on “main” firewall is ambiguous as there is more than one registered provider.

I would really appreciate if you could help me with some guidance.

Thank you.