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§
Source§impl Clone for WebAuthenticationSession
impl Clone for WebAuthenticationSession
Source§fn clone(&self) -> WebAuthenticationSession
fn clone(&self) -> WebAuthenticationSession
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WebAuthenticationSession
impl Debug for WebAuthenticationSession
Source§impl Default for WebAuthenticationSession
impl Default for WebAuthenticationSession
Source§fn default() -> WebAuthenticationSession
fn default() -> WebAuthenticationSession
Source§impl<'de> Deserialize<'de> for WebAuthenticationSession
impl<'de> Deserialize<'de> for WebAuthenticationSession
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for WebAuthenticationSession
impl PartialEq for WebAuthenticationSession
Source§impl Serialize for WebAuthenticationSession
impl Serialize for WebAuthenticationSession
impl Eq for WebAuthenticationSession
impl StructuralPartialEq for WebAuthenticationSession
Auto Trait Implementations§
impl Freeze for WebAuthenticationSession
impl RefUnwindSafe for WebAuthenticationSession
impl Send for WebAuthenticationSession
impl Sync for WebAuthenticationSession
impl Unpin for WebAuthenticationSession
impl UnwindSafe for WebAuthenticationSession
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.