Struct apple_bundle::info_plist::app_services::WebAuthenticationSession[][src]

pub struct WebAuthenticationSession {
    pub is_supported: Option<bool>,
    pub ephemeral_browser_session_is_supported: Option<bool>,
}
Expand description

Web Authentication Session

Fields

is_supported: Option<bool>

A Boolean that indicates whether the app acts as a browser that supports authentication sessions.

Set the corresponding value to YES to indicate that your browser app can handle authentication requests that other apps generate with ASWebAuthenticationSession. For details, see Supporting Single Sign-On in a Web Browser App.

Availability

  • macOS 10.15+

Framework

  • Authentication Services
ephemeral_browser_session_is_supported: Option<bool>

A Boolean that indicates whether the app supports ephemeral browsing when conducting authentication sessions.

Set the corresponding value to YES to indicate that your browser app, when handling authentication requests, offers ephemeral browsing.

If you don’t provide the key, or if you set its value to NO and an app tries to conduct an ephemeral authentication session, the system warns the user. If do you declare support by setting the value to YES, be sure to respect the shouldUseEphemeralSession property on any incoming authentication requests, as described in Supporting Single Sign-On in a Web Browser App.

Note

It’s strongly recommended that your web browser support ephemeral sessions. Apps can specifically request this kind of session, and it’s important to honor the request.

Availability

  • macOS 10.15+

Framework

  • Authentication Services

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.