示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="KinveyXamarin.KinveyAuthRequest"/> class.
        /// </summary>
        /// <param name="client">Client.</param>
        /// <param name="baseUrl">Base URL.</param>
        /// <param name="auth">authenticator to use.</param>
        /// <param name="appKey">App key.</param>
        /// <param name="identity">The third party identity.</param>
        /// <param name="user">User.</param>
        /// <param name="create">If set to <c>true</c> create.</param>
        public KinveyAuthRequest(AbstractKinveyClient client, IAuthenticator auth, string appKey, ThirdPartyIdentity identity, User user, bool create)

        {
            this.client = client;
            this.appKeyAuthentication = auth;
            this.identity             = identity;
            this.create = create;
            this.uriTemplateParameters = new Dictionary <string, string>();
            this.uriTemplateParameters.Add("appKey", appKey);
        }
示例#2
0
 internal LoginRequest(AbstractClient client, KinveyAuthRequest.Builder builder, EnumLoginType loginType, ThirdPartyIdentity identity)
 {
     this.abstractClient   = client;
     this.builder          = builder;
     this.builder.Identity = identity;
     this.builder.Create   = false;
     this.type             = loginType;
 }
 internal MICLoginRequest BuildMICLoginRequest(ThirdPartyIdentity identity)
 {
     return(new MICLoginRequest(Client, AuthRequestBuilder, EnumLoginType.THIRDPARTY, identity).buildAuthRequest());
 }
示例#4
0
 public Builder(AbstractKinveyClient transport, string appKey, string appSecret, ThirdPartyIdentity identity, User user = null)
     : this(transport, appKey, appSecret, user)
 {
     this.identity = identity;
 }