Skip to content

Commit

Permalink
redo
Browse files Browse the repository at this point in the history
  • Loading branch information
vdelachaux committed Oct 2, 2024
1 parent bf100fd commit 864eb8d
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 40 deletions.
Binary file modified Build/4DPop-Git.dmg
Binary file not shown.
Binary file modified Build/4DPop-Git.zip
Binary file not shown.
Binary file modified Build/Components/4DPop Git.4dbase/4DPop Git.4DZ
Binary file not shown.
4 changes: 2 additions & 2 deletions Build/Components/4DPop Git.4dbase/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
<key>CFBundleShortVersionString</key>
<string>20R7</string>
<key>CFBundleLongVersionString</key>
<string>20R7 (184)</string>
<string>20R7 (185)</string>
<key>CFBundleGetInfoString</key>
<string>20R7</string>
<key>CFBundleDisplayName</key>
<string>4DPop Git</string>
<key>CFBundleVersion</key>
<string>185</string>
<string>186</string>
<key>NSHumanReadableCopyright</key>
<string>©vdl 2020-2024</string>
</dict>
Expand Down
Binary file modified Build/Components/4DPop Git.4dbase/Libraries/lib4d-arm64.dylib
Binary file not shown.
Binary file modified Build/Components/4DPop Git.4dbase/Resources/InfoPlist.strings
Binary file not shown.
4 changes: 2 additions & 2 deletions Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
<key>CFBundleShortVersionString</key>
<string>20R7</string>
<key>CFBundleLongVersionString</key>
<string>20R7 (184)</string>
<string>20R7 (185)</string>
<key>CFBundleGetInfoString</key>
<string>20R7</string>
<key>CFBundleDisplayName</key>
<string>4DPop Git</string>
<key>CFBundleVersion</key>
<string>185</string>
<string>186</string>
<key>NSHumanReadableCopyright</key>
<string>©vdl 2020-2024</string>
</dict>
Expand Down
72 changes: 36 additions & 36 deletions Project/Sources/Classes/GithubAPI.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -273,59 +273,59 @@ Function AuthorizeApp() : Boolean
// === === === === === === === === === === === === === === === === === === === === === === === === === ===
Function getAppToken() : Object

//var $param; $token : Object
//var $ws : 4D.WebServer
//var $oAuth2 : cs.NetKit.OAuth2Provider
var $param; $token : Object
var $ws : 4D:C1709.WebServer
var $oAuth2 : cs:C1710.NetKit.OAuth2Provider

//$token:=Storage.OAuth2
$token:=Storage:C1525.OAuth2

//If (This._IsValidAppToken($token))

//return $token

//End if

//// Start web server if any
//$ws:=WEB Server

//If (Not($ws.isRunning))
If (This:C1470._IsValidAppToken($token))

return $token

End if

//$ws.start({\
rootFolder: Folder(fk database folder).folder("www"); \
HTTTPort: 8858\
})
// Start web server if any
$ws:=WEB Server:C1674

//End if
If (Not:C34($ws.isRunning))

$ws.start({\
rootFolder: Folder:C1567(fk database folder:K87:14).folder("www"); \
HTTTPort: 8858\
})

End if

//$param:={\
$param:={\
token: $token; \
permission: "signedIn"; \
clientId: This.clientId; \
clientSecret: This.clientSecret; \
clientId: This:C1470.clientId; \
clientSecret: This:C1470.clientSecret; \
redirectURI: "http://127.0.0.1:50993/authorize/"; \
scope: "repo, user"; \
authenticateURI: "https://github.com/login/oauth/authorize"; \
tokenURI: "https://github.com/login/oauth/access_token"; \
timeout: 60; \
authenticationPage: Folder($ws.rootFolder).file("authentication.htm"); \
authenticationErrorPage: Folder($ws.rootFolder).file("error.htm")\
authenticationPage: Folder:C1567($ws.rootFolder).file("authentication.htm"); \
authenticationErrorPage: Folder:C1567($ws.rootFolder).file("error.htm")\
}

//$oAuth2:=cs.NetKit.OAuth2Provider.new($param)

//$token:=$oAuth2.getToken()
//This.success:=$token#Null

//If (This.success)
$oAuth2:=cs:C1710.NetKit.OAuth2Provider.new($param)

//Use (Storage)
$token:=$oAuth2.getToken()
This:C1470.success:=$token#Null:C1517

//Storage.OAuth2:=OB Copy($token; ck shared)

//End use
//End if
If (This:C1470.success)

Use (Storage:C1525)

Storage:C1525.OAuth2:=OB Copy:C1225($token; ck shared:K85:29)

End use
End if

//return $token
return $token

// *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Function _IsValidAppToken($token : Object) : Boolean
Expand Down
Binary file modified Resources/InfoPlist.strings
Binary file not shown.

0 comments on commit 864eb8d

Please sign in to comment.