Skip to content

Commit

Permalink
Working on Auth Module
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-lassfolk committed Apr 26, 2018
1 parent 95ab88d commit b8c2d18
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

EVE-Online-ESI-Posh/Auth-info/ESI Token info.csv
21 changes: 21 additions & 0 deletions EVE-Online-ESI-Posh/Private/EVE-ESI-Auth.psm1
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}

0 comments on commit b8c2d18

Please sign in to comment.