You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR updates our comments for various requests as this helps our
typedoc documentation.
---------
Co-authored-by: Thomas Norling <[email protected]>
Copy file name to clipboardExpand all lines: lib/msal-browser/apiReview/msal-browser.api.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,7 +142,7 @@ export { AuthErrorCodes }
142
142
143
143
// Warning: (ae-missing-release-tag) "AuthorizationCodeRequest" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
Copy file name to clipboardExpand all lines: lib/msal-browser/src/request/PopupRequest.ts
+12-24Lines changed: 12 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -9,30 +9,6 @@ import { PopupWindowAttributes } from "./PopupWindowAttributes.js";
9
9
/**
10
10
* PopupRequest: Request object passed by user to retrieve a Code from the
11
11
* server (first leg of authorization code grant flow) with a popup window.
12
-
*
13
-
* - scopes - Array of scopes the application is requesting access to.
14
-
* - authority - Url of the authority which the application acquires tokens from.
15
-
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
16
-
* - redirectUri - The redirect URI where authentication responses can be received by your application. It must exactly match one of the redirect URIs registered in the Azure portal.
17
-
* - extraScopesToConsent - Scopes for a different resource when the user needs consent upfront.
18
-
* - state - A value included in the request that is also returned in the token response. A randomly generated unique value is typically used for preventing cross site request forgery attacks. The state is also used to encode information about the user's state in the app before the authentication request occurred. For security and privacy reasons, we do not recommend putting URLs or other sensitive data directly in the state parameter. Instead, use a key or identifier that corresponds to data stored in browser storage (e.g., localStorage, sessionStorage), allowing your app to securely reference the necessary data after authentication.
19
-
* - prompt - Indicates the type of user interaction that is required.
20
-
* login: will force the user to enter their credentials on that request, negating single-sign on
21
-
* none: will ensure that the user isn't presented with any interactive prompt. if request can't be completed via single-sign on, the endpoint will return an interaction_required error
22
-
* consent: will the trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app
23
-
* select_account: will interrupt single sign-=on providing account selection experience listing all the accounts in session or any remembered accounts or an option to choose to use a different account
24
-
* create: will direct the user to the account creation experience instead of the log in experience
25
-
* no_session: will not read existing session token when authenticating the user. Upon user being successfully authenticated, EVO won’t create a new session for the user. FOR INTERNAL USE ONLY.
26
-
* - loginHint - Can be used to pre-fill the username/email address field of the sign-in page for the user, if you know the username/email address ahead of time. Often apps use this parameter during re-authentication, having already extracted the username from a previous sign-in using the login_hint or preferred_username claim.
27
-
* - sid - Session ID, unique identifier for the session. Available as an optional claim on ID tokens.
28
-
* - domainHint - Provides a hint about the tenant or domain that the user should use to sign in. The value of the domain hint is a registered domain for the tenant.
29
-
* - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
30
-
* - extraParameters - String to string map of custom query parameters added to outgoing token service requests
31
-
* - claims - In cases where Azure AD tenant admin has enabled conditional access policies, and the policy has not been met, exceptions will contain claims that need to be consented to.
32
-
* - nonce - A value included in the request that is returned in the id token. A randomly generated unique value is typically used to mitigate replay attacks.
33
-
* - popupWindowAttributes - Optional popup window attributes. popupSize with height and width, and popupPosition with top and left can be set.
34
-
* - popupWindowParent - Optional window object to use as the parent when opening popup windows. Uses global `window` if not given.
35
-
* - overrideInteractionInProgress - Optional flag to allow overriding an existing interaction_in_progress state for popup flows. **WARNING**: Use with caution! For usage details and examples, see the [login-user.md](../../../docs/login-user.md#handling-interaction_in_progress-errors) documentation.
36
12
*/
37
13
38
14
exporttypePopupRequest=Partial<
@@ -46,8 +22,20 @@ export type PopupRequest = Partial<
46
22
|"platformBroker"
47
23
>
48
24
>&{
25
+
/**
26
+
* Array of scopes the application is requesting access to.
27
+
*/
49
28
scopes: Array<string>;
29
+
/**
30
+
* Optional popup window attributes. popupSize with height and width, and popupPosition with top and left can be set.
31
+
*/
50
32
popupWindowAttributes?: PopupWindowAttributes;
33
+
/**
34
+
* Optional window object to use as the parent when opening popup windows. Uses global `window` if not given.
35
+
*/
51
36
popupWindowParent?: Window;
37
+
/**
38
+
* Optional flag to allow overriding an existing interaction_in_progress state for popup flows. **WARNING**: Use with caution! For usage details and examples, see the [login-user.md](../../../docs/login-user.md#handling-interaction_in_progress-errors) documentation.
0 commit comments