简体   繁体   English

fiware spagobi api rest使用keyrock进行验证

[英]fiware spagobi api rest validate with keyrock

I have 3 instances: 我有3个实例:

1.- app web (ubuntu instance) 1.-应用程式网页(Ubuntu执行个体)

2.- keyrock instance 2.- Keyrock实例

3.- spagobi instance 3.- spagobi实例

My spagobi instance works validating users with keyrock as the same as App web. 我的spagobi实例可使用与App Web相同的keyrock来验证用户。 I create some reports in it. 我在其中创建一些报告。 Now, i need to get these reports to insert into my app web. 现在,我需要获取这些报告以插入我的应用程序网络。

Im trying to use http://docs.spagobi.apiary.io/ , The preview subresource option. 我正在尝试使用http://docs.spagobi.apiary.io/ 预览子资源选项。 But all times i have a modal window asking my user/pass (as a apache security option). 但一直以来,我都有一个模态窗口询问我的用户/密码(作为apache安全选项)。

im using http://spagobi-url/SpagoBI/restful-services/2.0/documents/printers_visited/preview (printers visited is the label of my document). 即时通讯使用http://spagobi-url/SpagoBI/restful-services/2.0/documents/printers_visited/preview (访问的打印机是我的文档的标签)。 And results: 结果:

apache认证

If i wrote my user/pass in this panel, validation dont work and tries as a loop. 如果我在此面板中编写了用户名/密码,则验证无效,并尝试作为循环。

Anyone know how to solve this? 有人知道如何解决吗?

the REST services provided by SpagoBI require basic authentication, that's why you see the modal window asking for credentials. SpagoBI提供的REST服务需要基本身份验证,这就是为什么您看到要求凭据的模式窗口的原因。 In order to avoid this, you should implement a SSO between your application and SpagoBI and open a session in SpagoBI: when the session is opened, you should be able to invoke REST services. 为了避免这种情况,您应该在应用程序和SpagoBI之间实现SSO,并在SpagoBI中打开会话:打开会话后,您应该能够调用REST服务。 Pay attention to the fact that preview subresource is just a static (optional file), it is not the executed report: if you want to execute the report, you should get the content subresource. 请注意,预览子资源只是一个静态文件(可选文件),而不是已执行的报告:如果要执行报告,则应获取内容子资源。 Just to let you know, we are currently developing possibility to invoke REST services providing the OAuth token. 提醒您,我们目前正在开发调用提供OAuth令牌的REST服务的可能性。 This should be available in next release. 在下一发行版中应该可用。

Hope this helps 希望这可以帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM