简体   繁体   English

我可以更改Horizo​​n提供的访问令牌中的“ app_azf_domain”吗?

[英]Can I change the 'app_azf_domain' in access token provided by Horizon?

I'm Testing FIWARE security GEris. 我正在测试FIWARE安全性GEris。 But I have a problem when I use PDP (AuthzForce) with PEP Proxy (Wilma). 但是,当我将PDP(AuthzForce)与PEP代理(Wilma)一起使用时,会遇到问题。

Now, Wilma and AuthzForce are working well in separately. 现在,Wilma和AuthzForce分别运作良好。 However, when I request resource to Wilma with an access token, Wilma retrieve the wrong PDP domain because of its 'app_azf_domain' made by Horizon. 但是,当我使用访问令牌向Wilma请求资源时,Wilma检索了错误的PDP域,这是因为Horizo​​n制作了“ app_azf_domain”。

This is my access token: 这是我的访问令牌:

{ "organizations": [ ], "displayName": "user0", "roles": [ { "name": "End user", "id": "bb42b0b3f680469cbba5b2fb4e8c39f7" }, { "name": "Global manager", "id": "17c87423eb514fc1a8a7f0fecaa543f9" }, { "name": "Family", "id": "0a4839c502054c1189a27e40f3189a55" } ], "app_id": "a8e7489b62fc4ed9b8b6ee28d3dd91c8", "email": "user0@test.com", "id": "user0", "app_azf_domain": "iiJ8_xICEeeHFQJCrBEABA" } {“组织”:[],“ displayName”:“ user0”,“角色”:[{“名称”:“最终用户”,“ id”:“ bb42b0b3f680469cbba5b2fb4e8c39f7”},{“名称”:“全局管理器”, “ id”:“ 17c87423eb514fc1a8a7f0fecaa543f9”},{“ name”:“ Family”,“ id”:“ 0a4839c502054c1189a27e40f3189a55”}],“ app_id”:“ a8e7489b62fc4ed9b8b6ee28d3,用户” “:” user0“, ” app_azf_domain“:” iiJ8_xICEeeHFQJCrBEABA“ }

Here is the problem. 这是问题所在。 I don't have the iiJ8_xICEeeHFQJCrBEABA domain! 我没有iiJ8_xICEeeHFQJCrBEABA域!

So, can I change the app_azf_domain or make domain named iiJ8_xICEeeHFQJCrBEABA? 因此,我可以更改app_azf_domain或将域名命名为iiJ8_xICEeeHFQJCrBEABA吗?

I reinstall the Keyrock using following URL and the problem is fixed. 我使用以下URL重新安装Keyrock,此问题已解决。 ( http://fiware-idm.readthedocs.io/en/latest/admin_guide.html ) http://fiware-idm.readthedocs.io/en/latest/admin_guide.html

I recommend you to DO NOT use the following code. 我建议您不要使用以下代码。 ( https://github.com/ging/fiware-idm ) https://github.com/ging/fiware-idm

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

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