Skip to content

Latest commit

 

History

History
113 lines (87 loc) · 4.1 KB

README.md

File metadata and controls

113 lines (87 loc) · 4.1 KB

UGent Auto Login Extension

Extension icon
Why does this exist?
you reopen your browser and notice you have to log in to all Ugent-related tabs again.
This automates clicking "login" on every login screen.
This happens in the background, the extension will not move your mouse.

Table of Contents

Installation guide

Chrome

  1. Download the latest ugent_autologin-X.X.X.zip from releases
  2. Extract the downloaded zip
  3. In Chrome, browse to chrome://extensions/ and make sure developer mode is enabled. (top right)
  4. Click "Load unpacked" (top left) and select the extracted zip.

chrome unpacked extension instruction

Firefox

  1. Download the latest ugent_autologin-X.X.X.xpi from releases
  2. In Firefox, browse to about:addons, click the settings icon next to Manage extensions
  3. Click the "Install Add-on From File..." option & choose the downloaded .xpi file.

Firefox will give you a pop-up to add the Add-on, just click "Add".

firefox install instructions firfox add add-on

Auto login screens

The login portals you'd see when you're logged out.
All these login buttons will automatically be clicked.
TimeEdit
url: https://cloud.timeedit.net/*
Login TimeEdit

Ufora
url: https://elosp.ugent.be/*
Ufora login

Microsoft
url: https://login.microsoftonline.com/*
microsoft choose account
The first @ugent.be account always gets chosen.

Manual exceptions

These are login screens that cannot be automated

Microsoft 2FA

Sometimes, after choosing your account, you'll have to use 2FA to log in again.
This is because your session token expired.
That can't be automated. And has to be done every once in a while.
Microsoft choose account login

Microsoft login needs password
after filling in the password, microsoft might ask for 2FA
auth code microsoft login
This still requires manual work

no saved microsoft account

Microsoft email login screen
This means you don't have an account ready to be signed into.

=> log in to https://login.microsoftonline.com/ with your UGent account & make sure to "remember" the account.

Contributing

You can build & test the extension while developing by using the build script. You will need npm for this.

npm run build:<platform>

platform can either be chrome or firefox

The platform specific extension will be built in a new dist/<platform> directory

Chrome

npm run build:chrome
  1. Go to chrome://extensions/ and make sure developer mode is enabled.
  2. "load extracted extension" and select the created dist/chrome folder.

Firefox

npm run build:firefox
  1. zip all the files in the dist/firefox folder. So the .zip shouldn't have a firefox subfolder!
  2. go to about:debugging#/runtime/this-firefox in Firefox.
  3. click "Load temporary add-on..."
  4. Select the zip.

note: temporary add-ons expire in 24 hours.

Bugs or Feature Requests

Please create an Issue for bugs or feature requests.
Pull Requests are always welcome.