Exemple #1
0
 /// <inheritdoc />
 internal PublicClientApplicationBuilder(ApplicationConfiguration configuration)
     : base(configuration)
 {
 }
Exemple #2
0
        /// <summary>
        /// Creates a PublicClientApplicationBuilder from a clientID.
        /// See https://aka.ms/msal-net-application-configuration
        /// </summary>
        /// <param name="clientId">Client ID (also known as App ID) of the application as registered in the
        /// application registration portal (https://aka.ms/msal-net-register-app)/.</param>
        /// <returns>A <see cref="PublicClientApplicationBuilder"/> from which to set more
        /// parameters, and to create a public client application instance</returns>
        public static PublicClientApplicationBuilder Create(string clientId)
        {
            var config = new ApplicationConfiguration();

            return(new PublicClientApplicationBuilder(config).WithClientId(clientId));
        }
 /// <inheritdoc />
 internal ConfidentialClientApplicationBuilder(ApplicationConfiguration configuration)
     : base(configuration)
 {
 }
Exemple #4
0
        /// <summary>
        /// Creates a PublicClientApplicationBuilder from public client application
        /// configuration options. See https://aka.ms/msal-net-application-configuration
        /// </summary>
        /// <param name="options">Public client applications configuration options</param>
        /// <returns>A <see cref="PublicClientApplicationBuilder"/> from which to set more
        /// parameters, and to create a public client application instance</returns>
        public static PublicClientApplicationBuilder CreateWithApplicationOptions(PublicClientApplicationOptions options)
        {
            var config = new ApplicationConfiguration();

            return(new PublicClientApplicationBuilder(config).WithOptions(options));
        }
 internal AbstractApplicationBuilder(ApplicationConfiguration configuration)
 {
     Config = configuration;
 }
Exemple #6
0
 /// <inheritdoc />
 internal ConfidentialClientApplicationBuilder(ApplicationConfiguration configuration)
     : base(configuration)
 {
     ConfidentialClientApplication.GuardMobileFrameworks();
 }
 internal ConfidentialClientApplication(ApplicationConfiguration configuration)
     : base(configuration)
 {
     GuardMobileFrameworks();
     AppTokenCacheInternal = new TokenCache(ServiceBundle);
 }