Registration system using ion auth in codeigniter - codeigniter

I have developed a registration form using codeigniter framework which works fine. But now I want to integrate it with ion auth library to make it more scalable. But I am new to using external libraries in codeigniter and I don't know how to use ion auth to build a registration system. Can any one please let me know some good tutorials?

first of all have you read the official documentation which includes a detailed installation procedure ?
Also I think Ion Auth doesnt provide templates (views ) for handling registration,etc
Also have you considered using tank auth ?
Tank auth provides some basic views which handles registration, login etc.
Edit :
have a look at the views provided here

Related

Which Auth is usfull in Laravel / VueJS project?

I am planning a small project and have a question about authentication. I would like to implement the site with Laravel 8. However, as soon as the user has successfully logged in, he should be directed to the user dashboard. The User Dashboard should be a pure VueJS Single Page Application.
Now my question. Which auth should I use here? Session or token for the whole site or is both possible and useful?
If I use the token auth variant, for example, then I can protect the Vue app very well but I cannot access the user information outside the Vue app. For example, the current profile picture of the user should appear in the navbar and not only in the vue app but also on the landing page, contact page etc.
How can I do this and what will be the best practice and thanks for your help!
Use token based Authentication
(Laravel Passport)
Use Token-based authentication system.
In this way, you'll be able to manage the entire application UI and role checking in the frontend only. I would rather prefer to go with JWT [https://jwt-auth.readthedocs.io/en/develop/laravel-installation/]. It's easy to use and the documentation is pretty good. It's even supported by Lumen also. If you wish to integrate any micro-service in your application future, then it's available in Lumen micro-service also.

Laravel Sactum and Fortify - How to use them both?

Im working with Laravel 8 Project I have installed. Jetstream, Fortify, Sanctum, etc..
Now I need to made an app in html and jquery to the user login via API
and the made some processes within from the API
But I cannot understand how to make it.
Where Can i create the user token when he logins.. or if it's good to point my html login to /login of the Fortify Package.
I didn't found anythiing about this on the net.. please if someone made use of it... I will apreciate !

Laravel Login without auth

I am very beginner in laravel. I want to create a login registration with my own code without using the laravel auth.
Yes. This is very possible. There are many authentication packages you can reference and guides to follow for auth in PHP. I highly suggest you implement Laravel's authentication scaffolding and learn how it works in order to build your own. It's really awesome! I provided links to a poplar authentication package you can study through and a tutorial below.
https://github.com/panique/huge
https://www.tutorialrepublic.com/php-tutorial/php-mysql-login-system.php

Is there a codeigniter library user manager based on Ion_Auth?

I implemented codeigniter Ion_Auth library for user registration and etc. I noticed it does not have a built-in user manager such as edit user accounts. Does a user manager such as edit user accounts exist? I can always code one, but I rather not reinvent the wheel.
I use Ion Auth too, it is pretty well coded I and I like writing code with it.
I also needed users editing, but I find it quite easy, because I needed only one simple form, because the library has update_user() and you need only to pass an array with your new data.
Download a CMS because it looks to me you have little or no experience with codeigniter or php for that matter. I dont mean that in a rude way by any means but if you cant perform simple CRUD operations, install a pre-built system as it will save you lots of headaches.
I've just started using CI and am also using Ion Auth for authentication. I'm handling user signup/authentication exclusively with ion auth and extending public profiles using Grocery CRUD. All public info can be viewed globally, but only edited by the user that owns it (as defined by linking the ion auth user table to the extended profile table). I don't know if this is the best way to do it, but it is what I'm doing so far.

Confused about using ion auth or building custom authentication library

Hi I am building my first website with codeigniter. I am using registration form to allow users to register on the site. I have already built up the form and was heading towards login methods when I came across some authentication libraries in codeigniter. Some of them were ion auth, tank auth, etc. I heard that ion auth is pretty good one over others I want to know whether it is worth using it now when I have built my registration system already or should I skip to building custom authentication library?
All of these authentication libraries work in 90% of users needs. For instance Tank auth (my personal favorite) has a lot of features which can be disabled (so it is modular) and thus you can create authentication with elements suitable for your web site. If you find these elements necessary and you do not have time/knowledge/... to code it yourself, I suggest that you implement library.
However if you have some special authentication requirements or you do not need those additional features, you should stick with your custom made. Or you can choose to write one yourself, and use it in your projects. Benefits of custom made auth library are: you will learn a lot in the way and you will have all the features you want and need just the way you like it.
Both ways have good/bad sides - it is up to you.
Thank you for your time. All the best!
If all you've built out so far is the views you can easily drop Ion Auth in to handle your authentication.
The controller and views included with Ion Auth are just examples to get people started.

Resources