Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I was wondered what is the best way (and maybe the more secure) to organize the admin area.
First, what I mean by administration area, it is to manage the site itself (manage user, manage the cache, manage news, ...).
Currently, I have a User table, so that users can log into their member's area.
So is it better to use the same table, and add a user with special rights (administrator) or create another table only for administrators?
It also means having to manage multiple identities on the site (Member, Administrator).
What is the best way to proceed in Zend?
Imo... It would be better to use the same user table for authentication with a column to specify a role (ie user, admin etc).
Zend Framework has a built in authorization to log users in and built in ACL (access controll list) to allow users access to modules, controllers and actions based on their role.
There are lots of working examples on the web including the Zend framework docs.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Background:
I am a Laravel developer and now we're shifting to typo3 development. We are using version 9. I am struggling in the middle because of the lack of resources, except official documentation.
Where I stand:
I installed the bootstrap extension which is a package from Benjamin Knott. I successfully designed forms in the front-end and it's working fine. That's it with my progress.
Requirement:
My requirement is to create a front-end signup and login page for users. If the user logged in, I need to show their personal details in the front-end page. For example, his bio.
Questions I need answers
Just assume I have created tables using uid and pid.
How could I access the name arrays in the POST?
Now how/where should I create custom model/controllers?
Is it ok to create my controllers in bootstrap package itself?
typo3conf\ext\bootstrap_package\Classes
(or)
Do I need to create my own extension for user registration?
How could I render views like in Laravel?
For e.g., return view('', Array);
How could I manage routes using pid and uid?
I would recommend to read https://docs.typo3.org/m/typo3/book-extbasefluid/master/en-us/. That tutorial guides you through the creation of own extensions with custom controllers. This "book" focues on the developer part and how concepts like MVC, Repositories and Domain Model Design work within TYPO3 context.
https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ contains further resources about PHP API and other stuff in general. E.g. plain queries, sending mails, logging, etc.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am building an app for my school and I had read a little on Canvas's API and was wondering if anyone on here has played with it.
I am trying to make part of my account validation check whether or not a person is a student (and not a teacher/admin/etc.) but can't find a part of the API to help me with this.
Does anyone have any ideas?
Users in canvas can have multiple roles, that are different based on the context the user is in. For example a user could be a teacher in one course and a student in another. Or a user could be an admin in one account, and not another.
There are two different endpoints you will need to look at to check what roles a user has.
Enrollments:
https://canvas.instructure.com/doc/api/enrollments.html
An enrollment object in canvas will tell you what courses a user is in, and their role in the course.
Admins:
https://canvas.instructure.com/doc/api/admins.html#method.admins.index
The admin endpoint can give you a list of the admins in an account. But you will need an access token that has admin permissions to access this API.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am almost a total newbie to Wordpress.
I want to create a website where users can register themselves using either their Email ID or their Google, Facebook and similar accounts.
As I understand WP upon installation provides certain pre-defined users as explained here. Again as I understand these roles are meant for users who will specifically log in from the backend of the WP CMS to carry out stuff as per their roles.
But then again these are the pre defined users of WP. I want a surfer to be able to register on the website and add posts on their own.
Questions
Is this at all possible in WP?
If so how? Coding or using extending the basic functionality of WP extensions or plugins?
Can the user (not any of the reserved users) then create and publish a post on their own?
Can you refer some resources where the basic WP capabilities can be explored?
I hope my questions are clear
Thanks once again!
Check out this blog article on this very topic.
http://www.smashingmagazine.com/2012/05/29/login-wordpress-using-social-network/
Basically you are wanting Social logins. You can search wordpress.org for plugins to make this easier for you to implement. Basically you would download the desired plugin , install it and test it. (plugins have instillation instructions inside them usually in a text file.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm new in Zend Framework. I know this may seem like a stupid question, but i would like to clarify. Creating an application along with a website with ZF, when it's best to create a new module, or just a controller inside a module? Thanks in advance!
You should create a new module or not is totally based on your requirement.There are few common examples explained below:
1) Generally CMS websites having front end and administrator area, so for that we would prefer to create two modules. Default module for the front end (used by end user) and admin module used by site administrator only.
2) Another example: if we would like to create a Job Portal website then there will be three type of users be available on the site. Job seeker, Employer and Administrator. So we would prefer to create three modules applicant, employer and admin
Hence when to create a module is depend upon requirement of your application. Also when we require segregation between the features provided to different users, there we generally use modules.
Also refer: When to use Modules in Zend Framework?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I need to redirect authenticated users from Wordpress site #1 to Wordpress site #2, and have them be already authenticated for site #2 when they land there. IOW, I don't want them to have to authenticate twice just because I've relocated their app from #1 to #2.
The Wordpress user tables will be replicated between the 2 sites, which may or may not be within the same domain.
Any ideas on how to accomplish this? (I can write Wordpress plugins)
I don't know enough about wordpress to answer definitively, but it is possible to use OpenID in an SSO (single sign-on) model wherein one of your wordpress sites (say WP1) acts as an openid provider for WP2. Once the user agrees to share their credentials with WP2 they should be logged in automatically. This is the method of authentication stack exchange uses; if you are logged in on stackexchange.com you will be automatically logged in on any of their other sites provided you have an account.
Janrain provides a library for php OpenId which I've heard good things about, personally (although I've never used it, but I have used OpenID with C#).