1 | import { Authority } from "./authority/Authority";
|
2 | import { AuthenticationParameters } from "./AuthenticationParameters";
|
3 | import { StringDict } from "./MsalTypes";
|
4 | import { Account } from "./Account";
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export declare class ServerRequestParameters {
|
11 | authorityInstance: Authority;
|
12 | clientId: string;
|
13 | scopes: Array<string>;
|
14 | nonce: string;
|
15 | state: string;
|
16 | xClientVer: string;
|
17 | xClientSku: string;
|
18 | correlationId: string;
|
19 | responseType: string;
|
20 | redirectUri: string;
|
21 | promptValue: string;
|
22 | claimsValue: string;
|
23 | queryParameters: string;
|
24 | extraQueryParameters: string;
|
25 | get authority(): string;
|
26 | |
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | constructor(authority: Authority, clientId: string, responseType: string, redirectUri: string, scopes: Array<string>, state: string, correlationId: string);
|
36 | /**
|
37 | * @hidden
|
38 | * @ignore
|
39 | *
|
40 | * Utility to populate QueryParameters and ExtraQueryParameters to ServerRequestParamerers
|
41 | * @param request
|
42 | * @param serverAuthenticationRequest
|
43 | */
|
44 | populateQueryParams(account: Account, request: AuthenticationParameters | null, adalIdTokenObject?: object, silentCall?: boolean): void;
|
45 | /**
|
46 | * Constructs extraQueryParameters to be sent to the server for the AuthenticationParameters set by the developer
|
47 | * in any login() or acquireToken() calls
|
48 | * @param idTokenObject
|
49 | * @param extraQueryParameters
|
50 | * @param sid
|
51 | * @param loginHint
|
52 | */
|
53 | private constructUnifiedCacheQueryParameter;
|
54 | /**
|
55 | * @hidden
|
56 | *
|
57 | * Adds login_hint to authorization URL which is used to pre-fill the username field of sign in page for the user if known ahead of time
|
58 | * domain_hint if added skips the email based discovery process of the user - only supported for interactive calls in implicit_flow
|
59 | * domain_req utid received as part of the clientInfo
|
60 | * login_req uid received as part of clientInfo
|
61 | * Also does a sanity check for extraQueryParameters passed by the user to ensure no repeat queryParameters
|
62 | *
|
63 | * @param {@link Account} account - Account for which the token is requested
|
64 | * @param queryparams
|
65 | * @param {@link ServerRequestParameters}
|
66 | * @ignore
|
67 | */
|
68 | private addHintParameters;
|
69 | |
70 |
|
71 |
|
72 |
|
73 | private addSSOParameter;
|
74 | |
75 |
|
76 |
|
77 |
|
78 | static generateQueryParametersString(queryParameters?: StringDict, silentCall?: boolean): string | null;
|
79 | |
80 |
|
81 |
|
82 |
|
83 | static isSSOParam(request: AuthenticationParameters): boolean;
|
84 | |
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 | static determineResponseType(accountsMatch: boolean, scopes: Array<string>): string;
|
91 | |
92 |
|
93 |
|
94 |
|
95 |
|
96 | private static responseTypeForMatchingAccounts;
|
97 | }
|