Skip to content

Quickly Bootstrap Destiny API Authentication in PowerShell, webview2 API auth sample

License

Notifications You must be signed in to change notification settings

nkasco/Destiny-API-PowerShell-Bootstrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Destiny API PowerShell Bootstrapper

This repo will help you quickly bootstrap initial authentication using the Bungie Destiny API. It uses WinForms with a modern webview2 control.

Sample Pic

Assumptions:

  • You are running the script with Windows PowerShell 5.1 or PowerShell 7 (Both assemblies have been provided, they vary due to WinForm differences between .NET Framework 4.x and .NET 7)
  • You have created a PRIVATE application at https://www.bungie.net/en/Application
  • Capture the API Key, Client ID, and Client Secret
  • Set the redirect URI to "https://localhost.local" (The bootstrapper will handle capturing the auth code silently)

Note: If you'd like complete security peace at mind you can retrieve your own webview2 dlls if desired. I obtained mine by creating a basic winform application in Visual Studio and adding the Microsoft.Web.WebView2 package via NuGet. Build then retrieve the required dlls.

Feel free to use as a jumpstart for your own projects.

About

Quickly Bootstrap Destiny API Authentication in PowerShell, webview2 API auth sample

Resources

License

Stars

Watchers

Forks

Releases

No releases published