Skip to content

An extremely simple lightweight standalone Powershell script that lets you perform OAuth in the command line

License

Notifications You must be signed in to change notification settings

SteffenBlake/PowershellOauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PowershellOauth

An extremely simple lightweight standalone Powershell script that lets you perform OAuth in the command line

Full script can be found here

  • Supports automatically opening the browser for the user to log in
  • Uses the net core System.Net.HttpListener, which should be supported on any Windows 10 PC thats moderately up to date
  • Doesnt require downloading or installing any third party tools or extra libraries, runs completely standalone purely off Powershell
  • Configuration performed via a secondary AppSettings.json file, easy to configure!
  • Secrets are stored in a seperate Secrets.json file, so you are less likely to accidently commit secrets to github!
  • Optional caching of the OAuth code so it wont open a browser every single time you run it! (See AppSettings.json for details)
  • Customizable html landing page!

Support Checklist:

  • Add support to Auto-Close browser after 5 seconds Thanks fellwell5!
  • Add support for a customizable simple .html file for the landing page
  • Add support for optionally caching the OAuth Code
  • Move configuration to a json file
  • Support loading a Secrets.json file
  • More to come? (Open to suggestions!)

About

An extremely simple lightweight standalone Powershell script that lets you perform OAuth in the command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages