ozone-typescript-client
Advanced tools
Comparing version 0.9.17 to 0.9.18
@@ -152,2 +152,5 @@ import { fsm } from 'typescript-state-machine'; | ||
} | ||
class SessionCredentials extends OzoneCredentials { | ||
authenticate(ozoneURL: string): Promise<AuthInfo>; | ||
} | ||
class ItemByQueryCredentials extends OzoneCredentials { | ||
@@ -154,0 +157,0 @@ readonly typeIdentifier: string; |
@@ -301,7 +301,6 @@ var __extends = (this && this.__extends) || (function () { | ||
_a._authInfo = _b.sent(); | ||
this.log.debug("Authenticated with authInfo : " + this._authInfo); | ||
this.log.debug("Authenticated with authInfo : " + JSON.stringify(this._authInfo)); | ||
return [3 /*break*/, 4]; | ||
case 3: | ||
e_1 = _b.sent(); | ||
this.log.debug("DENIS//// " + e_1); | ||
response = e_1; | ||
@@ -865,2 +864,24 @@ this.log.debug("Authentication error : code " + response.status); | ||
OzoneClient.ItemCredentials = ItemCredentials; | ||
var SessionCredentials = /** @class */ (function (_super) { | ||
__extends(SessionCredentials, _super); | ||
function SessionCredentials() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
SessionCredentials.prototype.authenticate = function (ozoneURL) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var httpClient, request; | ||
return __generator(this, function (_a) { | ||
httpClient = newHttpClient(); | ||
request = new Request(ozoneURL + "/rest/v3/authentication/current/session") | ||
.set({ | ||
method: 'GET', | ||
withCredentials: true | ||
}); | ||
return [2 /*return*/, (httpClient.call(request))]; | ||
}); | ||
}); | ||
}; | ||
return SessionCredentials; | ||
}(OzoneCredentials)); | ||
OzoneClient.SessionCredentials = SessionCredentials; | ||
var ItemByQueryCredentials = /** @class */ (function (_super) { | ||
@@ -888,3 +909,2 @@ __extends(ItemByQueryCredentials, _super); | ||
}); | ||
// log.debug(`REQ: ${JSON.stringify(request)}`) | ||
return [2 /*return*/, (httpClient.call(request))]; | ||
@@ -891,0 +911,0 @@ }); |
{ | ||
"name": "ozone-typescript-client", | ||
"version": "0.9.17", | ||
"version": "0.9.18", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1246
113126