My plan as of the moment is:
- Have link on an outside-site that leads to my kirby-site; so it would be outside-site->login authentication by outside-site->profile page on kirby-site that authenticated user can edit.
- user can use the panel to edit their page and save so the profile page is updated
I have an authentication helper for the .htaccess file.
My understanding is that to access my kirby-site I will put the .htaccess bit in and anyone who tries to go to the link will needs to login. All good.
The link I would like the user to be taken to is the username from the .htacess authentication. So, mine would be fatmushroom on the outside-site and on my kirby-site, and I would be able to edit the profile/fatmushroom page only. I assume I would create a user when the page loads using https://getkirby.com/docs/reference/api/users/create
Do I use the https://getkirby.com/docs/guide/api/authentication for getting the username from the .htaccess authentication? Then once the user is created I can have them auto login-in using https://getkirby.com/docs/reference/api/auth/login?
Does this sound about right?