1 | /*
|
2 | * Copyright (c) Microsoft Corporation. All rights reserved.
|
3 | * Licensed under the MIT License.
|
4 | */
|
5 | import { ClientConfigurationError } from "./error/ClientConfigurationError";
|
6 | export 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 |