UNPKG

627 BJavaScriptView Raw
1/*
2 * Copyright (c) Microsoft Corporation. All rights reserved.
3 * Licensed under the MIT License.
4 */
5import { ClientConfigurationError } from "./error/ClientConfigurationError";
6export function validateClaimsRequest(request) {
7 if (!request.claimsRequest) {
8 return;
9 }
10 try {
11 JSON.parse(request.claimsRequest);
12 }
13 catch (e) {
14 throw ClientConfigurationError.createClaimsRequestParsingError(e);
15 }
16 // TODO: More validation will be added when the server team tells us how they have actually implemented claims
17}
18//# sourceMappingURL=AuthenticationParameters.js.map
\No newline at end of file