SAML客户端Android版? [英] SAML client for Android?

查看:183
本文介绍了SAML客户端Android版?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作,需要从一些受保护的网页解析某些数据的项目。为了获得访问这些网页,我必须克服一个SAML authetication形式(Shibboleth的)。
有没有人谁是能够实现的Andr​​oid(Java)的这个标准?
我已经看过这个线程:为Android SAML客户端执行
但它并没有给我一个很好的解决方案。其实,我需要为了解析它,不要让用户看到这样的页面的内容的获得一些保护网页的数据。因此通过的WebView登录是不是我真正需要的。

I'm working on a project which needs to parse some data from some protected web pages. In order to gain the access those pages, I have to overcome a SAML authetication form (Shibboleth). Is there someone who was able to implement this standard in Android (Java)? I already read this thread: SAML Client implementation for Android? but it doesn't give me a good solution. In fact, I need to get the data of some protected web pages in order to parse it, not to let the user to see the content of such pages. Therefore logging in through a WebView is not what I really need..

推荐答案

经过一番研究,我结束了构建它我自己。
我仔细地跟踪着每一个重定向,并把创建的每个饼干,编辑或删除的音符(歌剧,其内置选项,允许关掉重定向是关键)。
其结果是,然后我在包复制流量的特设的:在SetUpConnection类,其任务是连接主机与跟踪的cookie。 SAML类,它复制了SAML流动,最后在主类,从中我可以收集有用的信息。

After some research, I ended up building it on my own. I carefully followed every redirect, and took note of every cookie created, edited or deleted (Opera, with its in-built option which allows to switch off redirects was the key). The result was a flow which then I replicated in a package ad hoc: the SetUpConnection class, whose task was connecting to the host and keeping track of the cookies. SAML class, which replicated the SAML flow, and finally the Main class, from which I can gather useful information.

希望它帮助。

这篇关于SAML客户端Android版?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆