CodeIgniter Forums
Implement Shield authentication with Vue 3 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Implement Shield authentication with Vue 3 (/showthread.php?tid=88544)



Implement Shield authentication with Vue 3 - eleumas - 09-25-2023

Hi! I'm building my first web app with Vue 3. I builded with Vue and Axios a CRUD and now i would like implement Shield authentication.
Do you have any suggestion for me? It is possible to do?
Thanks for help me.


RE: Implement Shield authentication with Vue 3 - JustJohnQ - 09-25-2023

Is CodeIgniter 4 part of your setup? If not, you can’t use Shield…


RE: Implement Shield authentication with Vue 3 - eleumas - 09-25-2023

(09-25-2023, 10:53 AM)JustJohnQ Wrote: Is CodeIgniter 4 part of your setup? If not, you can’t use Shield…

Of course! Smile  I used Codeigniter with Axios also for my CRUD.


RE: Implement Shield authentication with Vue 3 - InsiteFX - 09-25-2023

If your using CodeIgniter then yes you could install and use Sheid.

You may need too modify the views etc, but it should work fine.


RE: Implement Shield authentication with Vue 3 - eleumas - 09-26-2023

(09-25-2023, 09:37 PM)InsiteFX Wrote: If your using CodeIgniter then yes you could install and use Sheid.

You may need too modify the views etc, but it should work fine.

Yes i have already installed shield and all work fine. I have only to customize for Vue 3.
I just have one doubt for the controller. I would prefer create a new controller with new functions for login and registration...beacuse for example i don't need to redirect a new page after login, i would prefer have a json response.


RE: Implement Shield authentication with Vue 3 - InsiteFX - 09-26-2023

Custom Redirect URLs