Exemplo n.º 1
0
        public async Task <bool> Login(string code, string sessionState)
        {
            if (Identity != null)
            {
                return(false);
            }
            IdentityData id = await HostServer.Login(http, code);

            if (id == null)
            {
                return(false);
            }
            else
            {
                Identity       = id;
                Identity.State = sessionState;
                base.NotifyAuthenticationStateChanged(GetAuthenticationStateAsync());
                return(true);
            }
        }