Joomla PHPmaker authentication - authentication

I have already created my webpage with PHPmaker. An now I have install Joomla for my Homepage. Now My client has two username and password to login with this PHPmaker and Joomla created webpage.
I want to creat a plugin for joomla as when my user login to the joomla it automatically login the PHHmaker webpage too. So that my client can login the two website with a single login page.
Please guide me.
Note :- Joomla authentication for PHPmaker webpage.

In case you REALLY want to do it this way, you can get details on how to build the remote Joomla login portion here -
Logging In To Joomla 1.5 Using External Form (not within joomla folder, but on same server)

You will need to pass login credentials to PHPMaker via script and this will create session which you can use in Joomla too or else if you have used UserTrack settings then your user session data will get stored in user table into Usertrack field you could validate your user details and use Usertrack field and use that.
Kindly let me know whether that worked for you.

Related

Typo3 FE login programatically

In Typo3 post v10 onwards, how can I log in an FE user programmatically with just a user Id number, using the new authentication services and without having to render a form to submit?
I have a custom Typo3 v10 plugin that authenticates users and has worked fine in Typo3 v9 and v10. After checking credentials, I use the following:
$userToLogin = 123; //known user id.
$feUser = $GLOBALS['TSFE']->fe_user;
unset($feUser->user);
$feUser->createUserSession($userToLogin);
$feUser->loginSessionStarted = TRUE;
$feUser->user = $feUser->fetchUserSession();
$GLOBALS['TSFE']->loginUser = 1;
$GLOBALS['TSFE']->initUserGroups();
//reload the page so that restricted subpages appear in menus
$this->redirectToUri($this->linkThisPage);
I need to upgrade to V11 and thus to use the authentication service process instead, as $GLOBALS['TSFE']->loginUser is removed in Typo3 v11.
I get it from this post that this involves setting up a custom service, which is registered in the plugin localConf.php file. The issue is about how to trigger the login process? The example linked above resorts to rendering a mostly hidden form with a "Confirm" submit button that the user must press to trigger the login process. This may work, but looks bad, as the user has already authenticated elsewhere.
Does anyone know how can I trigger the authentication process programatically in a controller, without requiring the form submission? Many thanks in advance.
The Authentication Service login is triggered when Typo3 finds the request parameter with a logintype=login then your authentication service can do what it needs to do

How to bypass website login via mql4 to get data

How can I extract data from a website that is protected with a login and password via mql4?
I have the login credentials so this is not about hacking. I can get the html for any website but if a website has a login I can't get passed it.
I don't even know if login to a website is possible with mql4.
Anyone knows how to do this (if possible) ?
Many thanks

Odoo11 - Force authentication of a web page

I work under Odoo11 with the Python3 language.
When the person goes to a web page, I want them to automatically connect without going through an authentication page. Is that possible? And if so, by what means? Controllers, url to change?
I don't have any code to suggest, because I don't know where to start.
Thanks for your understanding and thanks for your help!
EDIT :
I have a list on the Odoo website visible to only one user.
If I sign in with another internal user, I don't see this list.
There are several people who need to access this list. The url in question will be given only to these people.
I just want to avoid them an authentication page. It is a request made by our hierarchy.
My idea was to call a function "to disconnect" from Odoo (in case they have an open session) then pass the connection parameters (hard for example) with the username and password but only for a url.
My use_case I will say,
Url access -> Disconnect Session -> Connect Odoo session with username and password with parameters in my controller -> redirection to this url
Thank you

Authentication mechanishim in publish

Experts,
I have to implement authentication mechanism same as how author instance works. For example, if any user request for any page http:somehost:someport/content/geometrixx/en.html then system should open the page http:somehost:someport/content/geometrixx/en/toolbar/account/login.html and only after successful login sling should redirect to required page.
I looked into Login Selector Authentication Handler and Sling Authentication Service but it seems there is no configuration here. Could you please let me know your thoughts on how to proceed on this? How it will be possible without CUG and how similer mechanism works in Author instance?
Goto http:somehost:someport/useradmin search for anonymous user. click on the anonymous user -> click on permission tab -> remove the read permission on the path that shouldn't be accessible to anonymous users.
If you just want to redirect to the login page if the user is unauthenticated then you will have to do 2 things.
1. Go to /system/console and navigate to the Configuration. Select "Apache Sling Authentication Service". Disable Anonymous access.
2. Go to /libs/cq/security/config.publish/LoginSelectorHandler - Change the login page to the page you want.

Is there anyway so that when I login to Alfresco instead going to dashboard, it should open the repository page?

When I login to Alfresco it directly takes me to Dashboard. But I want to open Repository page when I get logged in. Please tell me in which file I need to change the link to redirect to Repository page,so that when I login, I can see only the documents i.e Data Dictionary, User Homes?. I have noticed that when i login using the username and password and on click of login button, the Rest Url is "share/page/dologin". In this dologin file the link to the Dashboard is mentioned. But I dont know the mapping of Dologin. Can Anyone help?
Thank you in Advance
You can modify site-index.jsp (in the root of the share webapp) to redirect to the document library instead of the user's dashboard.
Change the line
response.sendRedirect(request.getContextPath() + "/page/user/" + URLEncoder.encode(userid) + "/dashboard");
to
response.sendRedirect(request.getContextPath() + "/page/repository");
This should redirect everyone to the repository page on login.