Skip to content

Automatic login in Microsoft Authentication Portal with Selenium in python

License

Notifications You must be signed in to change notification settings

LucasoDevDotTk/automatic_login_microsoft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic Login in Microsoft Authentication Portal

Automatic login in Microsoft Authentication Portal with Selenium in python.


How to

  1. On Windows: Run windows_install.bat, on Linux:

    1. pip install selenium
    2. pip install webdriver-manager
  2. Download Chrome

  3. Download login.py, remember to give credit and follow LICENSE

Documentation

Login.py contains two functions:

  1. login_cookies() is for when your browser remembers previous logged in users, the code is written to click on other users and continue logging in. This is used in situations like the image under.

    "Image of microsoft portal when choosing other account"

  2. login() is for when your browser does not collect info about users or the first time you're using that browser.


Bug report

Please report any bugs in the GitHub repository of this project.


LICENSE

MIT License

Copyright (c) 2023 Lucas Nguyen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Thanks for using my software 🎈

Happy Coding!

Releases

No releases published

Packages

No packages published