objc2_authentication_services/generated/
ASAuthorizationSingleSignOnProvider.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/authenticationservices/asauthorizationsinglesignonprovider?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct ASAuthorizationSingleSignOnProvider;
14);
15
16#[cfg(feature = "ASAuthorizationProvider")]
17extern_conformance!(
18    unsafe impl ASAuthorizationProvider for ASAuthorizationSingleSignOnProvider {}
19);
20
21extern_conformance!(
22    unsafe impl NSObjectProtocol for ASAuthorizationSingleSignOnProvider {}
23);
24
25impl ASAuthorizationSingleSignOnProvider {
26    extern_methods!(
27        /// To get the right extension the identity provider main URL has to be provided. The URL is even part of the extension using assosiated domains mechanism or can be configured by MDM profile.
28        #[unsafe(method(authorizationProviderWithIdentityProviderURL:))]
29        #[unsafe(method_family = none)]
30        pub unsafe fn authorizationProviderWithIdentityProviderURL(url: &NSURL) -> Retained<Self>;
31
32        #[cfg(all(
33            feature = "ASAuthorizationOpenIDRequest",
34            feature = "ASAuthorizationRequest",
35            feature = "ASAuthorizationSingleSignOnRequest"
36        ))]
37        #[unsafe(method(createRequest))]
38        #[unsafe(method_family = none)]
39        pub unsafe fn createRequest(&self) -> Retained<ASAuthorizationSingleSignOnRequest>;
40
41        #[unsafe(method(new))]
42        #[unsafe(method_family = new)]
43        pub unsafe fn new() -> Retained<Self>;
44
45        #[unsafe(method(init))]
46        #[unsafe(method_family = init)]
47        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
48
49        #[unsafe(method(url))]
50        #[unsafe(method_family = none)]
51        pub unsafe fn url(&self) -> Retained<NSURL>;
52
53        /// Returns YES if the configured provider is capable of performing authorization within a given configuration.
54        #[unsafe(method(canPerformAuthorization))]
55        #[unsafe(method_family = none)]
56        pub unsafe fn canPerformAuthorization(&self) -> bool;
57    );
58}