ICollabSessionOptions Interface
To use, import via @fluidframework/odsp-driver-definitions/legacy
.
For more information about our API support guarantees, see here.
Signature
export interface ICollabSessionOptions
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
forceAccessTokenViaAuthorizationHeader | Deprecated , Alpha |
optional |
boolean | Value indicating session preference to always pass access token via Authorization header. Default behavior is to pass access token via query parameter unless overall href string length exceeds 2048 characters. Using query param is performance optimization which results in ODSP XHR request being treated as 'simple' request which do not require OPTIONS call to validate CORS. However, not all ODSP implementations understand this optimization. For instance, auth layer on Converged stack will fail request with access token passed via query param. |
unauthenticatedUserDisplayName | Deprecated , Alpha |
optional |
string | Value indicating the display name for session that admits unauthenticated user. This name will be used in attribution associated with edits made by such user. |
Property Details
forceAccessTokenViaAuthorizationHeader
Value indicating session preference to always pass access token via Authorization header. Default behavior is to pass access token via query parameter unless overall href string length exceeds 2048 characters. Using query param is performance optimization which results in ODSP XHR request being treated as 'simple' request which do not require OPTIONS call to validate CORS. However, not all ODSP implementations understand this optimization. For instance, auth layer on Converged stack will fail request with access token passed via query param.
Due to security reasons we will be passing the token via Authorization header only.
To use, import via @fluidframework/odsp-driver-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
forceAccessTokenViaAuthorizationHeader?: boolean;
Type: boolean
unauthenticatedUserDisplayName
Value indicating the display name for session that admits unauthenticated user. This name will be used in attribution associated with edits made by such user.
starting in 2.0-RC3. No longer needed.
To use, import via @fluidframework/odsp-driver-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
unauthenticatedUserDisplayName?: string;
Type: string