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

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.

Related

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

Viewing pentaho dashboard outside pentaho

I have created a dashboard in pentaho User console. I want to view it outside the User console.(Without logging in to user console) Is it possible ?
Yes. It is possible.
You need get two things.
1)Get URL for the dashboard
2)Allow URL authentication.
1)Dashboard URL
---------------
The dashboard url structure will be like this.
http://localhost:8080/pentaho/plugin/pentaho-cdf-dd/api/renderer/render?solution=RootDirectoryName&path=SubDirectoryName&file=your_dashboard.wcdf&userid=admin&password=password
if you have directory structure like this in your pentaho
-
Home
---->Admin
---->Suzy
---->tiffiny
Public
----->myDashBoard
----------->myDashboard.wcdf
----->SampleDashBoard
----->.....
----->.....etc
Public and Home are root directories, and Suzy,SampleDashBoard are sub Directories.
Example if you want to use myDashboard.wcdf dashboard then you use this link.
http://localhost:8080/pentaho/plugin/pentaho-cdf-dd/api/renderer/render?solution=home&path=suzy&file=iq_dashboard.wcdf&userid=admin&password=password
------------------------------------------------------------------------
2)Allowing URL Authentication
go to your pentaho directory ex:- **
D:\yourDirectory\pentaho-server-ce-7.0.0.0-25\pentaho-server\pentaho-solutions\system\
------------------------------------------------------------------------
**
open security.properties file in editor.
security.properties
change this code from false to true.
requestParameterAuthenticationEnabled=true
------------------------------------------
>save file and close it.
>restart pentaho server.
>Open your browser and enter the dashboard link as generated in step 1.
>Now your dashboard will render on browser.
------------------------------------------------------------------------
If your dashboard was created with the CDE, you can embedded it in your web applications in three ways:
Enabling the requireJS flag in settings within the CDE and embedding the same via a rendering plugin.
Using iframe and calling the dashboard link passing authentication via URL.
Using the components of the CDF and placing in the code of your application.
You can choose the best way according your requirements.
Yes and no : If you double-click on the tab (here, I mean the tab inside the PUC) of your dashboard, the PUC will ask you if you want to open it in a tab of your browser. Answer yes and then you get your dashboard in a tab. The url ens with something like ' generatedcontent/ts=...' : copy it up toand including 'generatedcontent' : you can now directly see the dashboard BUT an authentification is still required
To achieve this you first have:
Double click the dashboard to open it in a new tab in the browser, copy the entire url including the ts
Activate url authentication on the server activing url autentication
Access the link, which you copied in step 1 by adding the following to the end &userid=YOUR_USER&password=YOUR_PASSWORD
Another way to do this is configuring pentaho with cas Switch to Central Authentication Service (CAS)
I hope I help 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.

Joomla PHPmaker 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.