Login to a website automatically via Chrome Extension? - google-chrome

I am working on an extension for a University website which likes to always make you log in, so one of the features I am trying to implement has to do with logging the user in automatically.
I could at the first load of the webpage automate clicking the login button and filling in the login data, however I want to make it more transparent and login in the background. Having the users username and password is it possible to do a login in the background by calling the same url the site uses and giving the post data? The site uses https, would this cause issues? How would I do this? Any good examples out there of this?

Related

How to display a customized webpage using Google Web App?

I'm trying to write a web app, such that when a user fetch his/her username to the web app, the web app will retrieve the data stored previously in a Google Sheet, and construct a form (webpage) based on the username. What I mean is, each username will have different contents to work with.
The problem is, I just cannot get the page to display; it just shows up for a second, and a warning sign just appears, and this makes my webpage looks so suspicious, while in fact, it isn't.
Here's the part of the code to show up the webpage:
The code above checks if it's the first time the user comes to the page, so a welcome page should be loaded, then he/she can continue from there.
And here's the page after a blink of an eyes:
What I want to ask is, is there a way that I can load a page based on the username given? I don't really know what I am doing wrong. :<
Thank you guys so much in advance.

How to make a PWA landing page different from the site landing page when offline?

My application has historically worked by having a landing page that's shown to everyone. There's a login button and if you click it, it shows a dialog for credentials, and when you enter them successfully, you are logged in and redirected to the home page for your login type.
In a PWA situation, once I know who the user is, I'd like to put an "install this as an app" button on the home page, and then since I know who the user is, there's no need to show the general landing page and ask for a login. I'd like to just remember the user and go right to their home page.
I could cache the login information in local storage, but I want to do this ONLY when offline and I think the PWA would still show the default landing page and, at best, immediately redirect to the home page, and this would look bad.
Is there a way to set this up the way I would like to?
In order to install a PWA you created a manifest file and a service worker. When the application is successfully installed (added to home screen) the service worker comes to action. The service worker will be serving all the files you have declared either online or offline. This means it will be serving the manifest file.
In the manifest file you can add the start url which is going to be the one defined route, in this case go directly to your app instead of the landing page. In your manifest file just add:
"start_url": "../joshuaFrankApp"
or
"start_url": "../joshuaFrankApp.html"
Whenever the app is installed (doesn't matter if it the user is online or offline) it will be redirected to the page you wanted.
Extra information:
https://developer.mozilla.org/en-US/docs/Web/Manifest/start_url

DokuWiki clicking on link displays FORBIDDEN page

I have searched the Forums and elsewhere for an answer... I'll keep researching but hoping that someone has run into this before...
I am using the latest download version of the “Closed” DokuWiki. I am building a Knowledgebase of forms and processes. I created a Start page and Menu page for all users to view, anything beyond that requires a login.
As admin, I can see all images and have access to all links. Click the link, the forms displays perfectly. (So no issue with capital letters or spaces).
However, when I login as a User, I can access all of the pages and see all of the text, but when I click on a link, the same Form as admin, instead of the form displaying in a new page, a new page is displayed with the word “Forbidden”.
So, I'm fairly sure it's an ACL issue. For example, I have the page “Office Administration” available to all Users. Do I need to somehow create a namespace or new page for all of the links, then give permission again? I was hoping that by making the page accessible to all users, this would also allow them the click on all of the links on that page as well??
How do I make the links accessible to all users? Image links are displayed to admin only. Not even registered users can view the images... text is fine... images show as broken links.
Appreciate any help you can offer! I have only been using DokuWiki for a couple of weeks but I am very happy with the results for far!
It was definitely an ACL (Access Control List) issue... so many settings...
I changed the Root* access to Upload and set the Start and Menu pages to Read only. From here on out it's setting permissions per user. whoo-hoo!

How to add a hyperlink to a password protected area of a website bypassing password login?

I am trying to add a hyperlink to an area of another website requiring login to view files. The target website will be a photo gallery website which then will be accessible on my website.
My question is this. Is it possible to encode login information into a hyperlink therefore bypassing login when hyperlink is clicked? Please let me know your thoughts.
Short answer: Client-side, this would be near-impossible, considering you cannot send form data via a hyperlink (though you can receive it, but then that gets dynamically added to the URL via method POST.) You can do this, however, by using Javascript by using a submit button (if the page doesn't have protection against csrf) which can dynamically inject parameters via a form, but then you would need a POST request cross-domain which is where my point with needing admin access comes in;
If you were to attempt to do this server-side, you would have to have admin access to both sites, certainly not just to site A. From then you can inject parameters into the hyperlinks via server-side scripting languages such as PHP or Python, which would then add the required information to the form upon landing on site B. But you must (must) be careful, this opens up the potential of a serious security compromise depending on how you allow users to log in to your site. Assuming it's yours. Either way, this is still a bad idea, which concludes to my
Shorter answer: No.

Adding links to login page of Coova captive portal

I have set up a Coova hotspot with captive portal. Presently, it is configured to internal hotspot and the webpages for captive portal are self-contained in the router. I am able to successfully login, browse and logout of the network.
I would like to add a to the login page, when clicked will open my company's webpage (all this, before the authentication happens). I added simple HTML code (below) to the 'Login Page' html code present in the portal.
My Company
I also added 'www.mycompany.com' in the walled garden inorder to allow access before the authentication succeeds.
When clicked on the link, it fails to open the desired webpage. It tries to search the page inside the router. But I can access the same page if type it in the browser. Please advise me how to customize the portal when using it as internal hotspot. Is it even possible to do this?
Thanks in advance..
Resolved it.. I had to give the complete address as the link - "http://mycompany.com".