Hey folks,
I am new to Strapi and I want to store user profile details in my CMS, I have a keycloak auth provider for all the other apps on my website (ecommerce, notifications etc.) and I have a few questions about expected behavior.
- Strapi does not show the option to login with Keycloak on the admin page: http://localhost:1337/admin is that expected?
- Going to http://localhost:1337/api/connect/keycloak redirects correctly to my Keycloak instance, upon successful login to Keycloak it redirects to my frontend application successfully as well
- However, Strapi does not create a new user with the token information (email, name etc.) from Keycloak, is that expected?
- If yes to the first question, now that the user is authenticated can I call a mutation to create a new profile record for that user in a collection ensure it requires auth?
- How do I ensure that after authentication the user is only able to see their own user profile records and not profile records from other users in the collection if they try to directly hit the API endpoint?
This topic has been created from a Discord post (1253488490054942910) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord