简体   繁体   English

使用keyrock实例进行fiware spagobi验证

[英]fiware spagobi validation with keyrock instance

i'm using three instances in my account lab. 我在帐户实验室中使用了三个实例。 All of them : 他们全部 :

1.-web app and a proxy (ubuntu image) 1.-Web应用程序和代理(ubuntu图像)

2.-keyrock 5 (keyrock-R5.1.0 image) 2.-keyrock 5(keyrock-R5.1.0图像)

3.-spagobi (spagobi image) 3.-spagobi(spagobi图片)

i having troubles setting spagobi to validate with keyrock, as in this link: authentication on spagobi using keyrock 我在设置spagobi以使用keyrock进行验证时遇到麻烦,如以下链接: 使用keyrock在spagobi上进行身份验证

"error while trying to get access token from Oauth2 provider" “尝试从Oauth2提供程序获取访问令牌时出错”

spagobi oauth2错误

I followed the guide here: 我在这里遵循了指南:

http://spagobi.readthedocs.org/en/latest/admin/README/index.html http://spagobi.readthedocs.org/en/latest/admin/README/index.html

the only difference is REST_BASE_URL, i change port to 5000 . 唯一的区别是REST_BASE_URL,我将port更改为5000 (default is 4730) (预设值为4730)

I think the problem is that spagobi tries to access token without X-Auth-Token value on headers. 我认为问题在于spagobi尝试访问标头中没有X-Auth-Token值的令牌。 But i don't know where can i set this on spagobi. 但是我不知道该如何在spagobi上设置它。

Anyone know this problem and how to solve it? 有人知道这个问题以及如何解决吗? or maybe i'm wrong? 还是我错了?

my oauth2.config.properties: 我的oauth2.config.properties:

# Informations about OAuth2 application
CLIENT_ID = ea74f4f72ee3438a82f1af785af0ecf1
SECRET = 21cf7df4633d4ff2b92251c266c00d09
APPLICATION_ID = ea74f4f72ee3438a82f1af785af0ecf1

# OAuth2 urls
AUTHORIZE_URL = http://example.es:8000/oauth2/authorize
ACCESS_TOKEN_URL = http://example.es:8000/oauth2/token
USER_INFO_URL = http://example.es:8000/user
REDIRECT_URI = http://example.es:8080/SpagoBI/servlet/AdapterHTTP?PAGE=LoginPage&NEW_SESSION=TRUE

# REST API urls
REST_BASE_URL = http://example.es:5000/v3/
TOKEN_PATH = auth/tokens
ROLES_PATH = OS-ROLES/roles
ORGANIZATIONS_LIST_PATH = OS-ROLES/organizations/role_assignments
ORGANIZATION_INFO_PATH = projects/

# Admin credentials
ADMIN_ID = fiware-example-admin
ADMIN_EMAIL = fiware@example.es
ADMIN_PASSWORD = 01189998819991197253

Sorry. 抱歉。 My fault: 我的错:

because we have not ready the real domain, i add in my /etc/hosts a local resolution. 因为我们还没有准备好真实域,所以我在/ etc / hosts中添加了本地分辨率。 But in spagobi instance i dont do it. 但在spagobi实例中,我不这样做。

the real problem is in screenshoot: 真正的问题在于屏幕截图:

java.net.UnknownHostException java.net.UnknownHostException

I solved it adding in /etc/hosts on spagobi instance the same ip. 我解决了它在spagobi实例的/ etc / hosts中添加相同的IP。

Sorry for the inconvenience. 抱歉给你带来不便。

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

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