Home > Mobile >  Consult the cas Android single sign-on (sso) problems?
Consult the cas Android single sign-on (sso) problems?

Time:09-30

Have Android client cas source such as single sign-on, or solution under this train of thought! Thank you very much!!

CodePudding user response:

This I don't know how to begin, the customer provides only the cas address, account and password.
More information about this online, but is based on web, asked a lot of people, all say this is a single sign-on web application, the client is not working,, but could not convince the leadership,

CodePudding user response:

Our side is the client app webview onpageStart cookies plug directly into, when your single point can access the page
String domainName=getDomainName (url);
System. Out.println (" domainName - & gt;" + domainName);
Try {
CookieManager CookieManager=CookieManager. GetInstance ();
//cookieManager. RemoveAllCookie ();
CookieManager. SetAcceptCookie (true);
CookieManager. SetCookie (url, "Account=" + Account + "; Max - Age=3600; Domain="+ domainName +"; Path=/");
CookieManager. SetCookie (url, "Dev=" + Dev + "; Max - Age=3600; Domain="+ domainName +"; Path=/");
CookieManager. SetCookie (url, "Authentication=" + + "Authentication; Max - Age=3600; Domain="+ domainName +"; Path=/");
If (Build) VERSION) SDK_INT & gt;=Build. VERSION_CODES. LOLLIPOP) {

CookieManager. Flush ();
} else {
CookieSyncManager. CreateInstance (context);
CookieSyncManager. GetInstance (). The sync ();
}
} the catch (Exception e) {
Util4Log. HandleLog (e);
}


Our side server has written a set of single sign-on webflow or something, I hope it can help you to transfer the md5 encryption
  • Related