-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95ab88d
commit b8c2d18
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
EVE-Online-ESI-Posh/Auth-info/ESI Token info.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
# Work in progress | ||
$AuthInfo = Import-Csv "C:\Users\markusla\Documents\GitHub\EVE-Online-ESI-Posh\EVE-Online-ESI-Posh\Auth-info\ESI Token info.csv" -Delimiter ";" | ||
|
||
|
||
$LoginServerURL = "login.eveonline.com" | ||
$EVESSOURL = "https://{login server base url}/oauth/authorize?response_type={response type}&redirect_uri={redirect uri}&client_id={client id}&scope={scopes}&state={state}" | ||
$ResponseType = "code" | ||
$RedirectionURL = $AuthInfo.CallbackURL | ||
$ClientID = $AuthInfo.ClientID | ||
$Scopes = $AuthInfo.Scopes | ||
$State = "PoshSSO" | ||
|
||
$URI = $EVESSOURL -replace "{login server base url}",$LoginServerURL -replace "{response type}",$ResponseType -replace "{redirect uri}",$RedirectionURL -replace "{client id}",$ClientID -replace "{scopes}",$Scopes -replace "{state}",$State | ||
|
||
$ie = New-Object -comobject InternetExplorer.Application | ||
$ie.visible = $true | ||
$ie.silent = $true | ||
$ie.Navigate( $URI ) | ||
while( $ie.busy){Start-Sleep 1} | ||
|