UNPKG

824 BJavaScriptView Raw
1"use strict";
2/*
3 * Copyright (c) Microsoft Corporation. All rights reserved.
4 * Licensed under the MIT License.
5 */
6Object.defineProperty(exports, "__esModule", { value: true });
7exports.validateClaimsRequest = void 0;
8var ClientConfigurationError_1 = require("./error/ClientConfigurationError");
9function validateClaimsRequest(request) {
10 if (!request.claimsRequest) {
11 return;
12 }
13 try {
14 JSON.parse(request.claimsRequest);
15 }
16 catch (e) {
17 throw ClientConfigurationError_1.ClientConfigurationError.createClaimsRequestParsingError(e);
18 }
19 // TODO: More validation will be added when the server team tells us how they have actually implemented claims
20}
21exports.validateClaimsRequest = validateClaimsRequest;
22//# sourceMappingURL=AuthenticationParameters.js.map
\No newline at end of file