| Thành viên | Nội dung |
ngk_succ@yahoo.com

2 bài
| Từ giờ anh em có thể thoải mái sử dụng open authentication (dung tài khoản google và yahoo) đăng nhập và post bài bình thường nhé. Chúc anh em vui vẻ  
|
chungnt88@gmail.com

1 bài
| Haha, Giao diện này nhìn kute hơn ha.

|
intchung
 Tôi ♥ Google 66 bài
| Vậy là làm được cái này rồi : http://coder.awas.vn/Home/Topic/470-Thong-bao-su-dung-open-authentication.aspx Share exp cho AE với !!! --- Welcome to my blogspot : http://intchung.blogspot.com/ Email : chungnt88@gmail.com
|
ngk_succ@yahoo.com

2 bài
| Lúc bấm vào cái button Login = openauthentication viết thế này
protected void OpenId_Click(object src, CommandEventArgs e) { string discoveryUri = e.CommandArgument.ToString(); OpenIdRelyingParty openid = new OpenIdRelyingParty(); UriBuilder b = new UriBuilder(Request.Url); b.Query = "";
IAuthenticationRequest req = openid.CreateRequest(discoveryUri, b.Uri, b.Uri); FetchRequest ax = new FetchRequest(); ax.Attributes.Add(new AttributeRequest("http://axschema.org/namePerson/friendly", true)); ax.Attributes.Add(new AttributeRequest("http://axschema.org/contact/email", true)); ax.Attributes.Add(new AttributeRequest("http://axschema.org/namePerson", true)); req.AddExtension(ax);
req.RedirectToProvider(); }
còn khi page load thì viết thế này
OpenIdRelyingParty rp = new OpenIdRelyingParty(); IAuthenticationResponse r = rp.GetResponse(); FetchResponse ax = r.GetExtension(typeof(FetchResponse)) as FetchResponse; AttributeValues areq = ax.Attributes["http://axschema.org/contact/email"]; string email = areq.Values[0].ToString();
là lấy được email thôi. Đơn giản ấy mà
|
intchung
 Tôi ♥ Google 66 bài
| Lúc bấm vào cái button Login = openauthentication viết thế này
protected void OpenId_Click(object src, CommandEventArgs e) { string discoveryUri = e.CommandArgument.ToString(); OpenIdRelyingParty openid = new OpenIdRelyingParty(); UriBuilder b = new UriBuilder(Request.Url); b.Query = "";
IAuthenticationRequest req = openid.CreateRequest(discoveryUri, b.Uri, b.Uri); FetchRequest ax = new FetchRequest(); ax.Attributes.Add(new AttributeRequest("http://axschema.org/namePerson/friendly", true)); ax.Attributes.Add(new AttributeRequest("http://axschema.org/contact/email", true)); ax.Attributes.Add(new AttributeRequest("http://axschema.org/namePerson", true)); req.AddExtension(ax);
req.RedirectToProvider(); }
còn khi page load thì viết thế này
OpenIdRelyingParty rp = new OpenIdRelyingParty(); IAuthenticationResponse r = rp.GetResponse(); FetchResponse ax = r.GetExtension(typeof(FetchResponse)) as FetchResponse; AttributeValues areq = ax.Attributes["http://axschema.org/contact/email"]; string email = areq.Values[0].ToString();
là lấy được email thôi. Đơn giản ấy mà
Thanks 4 sharing.  Mặc dù nhìn chưa hiểu lắm. Chắc phải copy từng cái đưa lên Google thôi  --- Welcome to my blogspot : http://intchung.blogspot.com/ Email : chungnt88@gmail.com
|
teriods@gmail.com

1 bài
| Bác có thể post cả code ví dụ lên được không?
Em mới làm nên cũng chưa rõ phải làm thế nào cả
|
leccut@yahoo.com.vn

1 bài
| Em đã làm đc google và yahoo, nhưng khi Yahoo trả lại là dạng
https://me.yahoo.com/a/RjnkMmgClNlQRgUp6zXhzHDHNg--#efb7c
em phải làm thế nào để nó ra string của mail thế?
Mong các bác chỉ giúp
|
 |