hardcode the client id

This commit is contained in:
skilion 2017-03-12 10:30:31 +01:00
parent ac555fd574
commit 8b204d18b4

View file

@ -6,6 +6,7 @@ static import log;
private immutable { private immutable {
string clientId = "22c49a0d-d21c-4792-aed1-8f163c982546";
string authUrl = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize"; string authUrl = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize";
string redirectUrl = "https://login.microsoftonline.com/common/oauth2/nativeclient"; string redirectUrl = "https://login.microsoftonline.com/common/oauth2/nativeclient";
string tokenUrl = "https://login.microsoftonline.com/common/oauth2/v2.0/token"; string tokenUrl = "https://login.microsoftonline.com/common/oauth2/v2.0/token";
@ -45,7 +46,6 @@ class OneDriveException: Exception
final class OneDriveApi final class OneDriveApi
{ {
private Config cfg; private Config cfg;
private string clientId;
private string refreshToken, accessToken; private string refreshToken, accessToken;
private SysTime accessTokenExpiration; private SysTime accessTokenExpiration;
/* private */ HTTP http; /* private */ HTTP http;
@ -53,7 +53,6 @@ final class OneDriveApi
this(Config cfg) this(Config cfg)
{ {
this.cfg = cfg; this.cfg = cfg;
this.clientId = cfg.getValue("client_id");
http = HTTP(); http = HTTP();
//http.verbose = true; //http.verbose = true;
} }