vharseko on master
Java 11 (#1) (#495) (compare)
vharseko on vharseko-patch-1
vharseko on master
FIX exclude Build package local… (compare)
vharseko on vharseko-patch-1
FIX exclude Build package local… (compare)
vharseko on java-11
vharseko on master
Docker refactoring + remove tra… (compare)
Hi all!
I would like to use some REST api to perform simple tasks like getting session info from a cookie value, let say I would like to know if a cookie is valid or not.
I'm not sure which API to use since I have found 2 APIs and both seems to be broken; for example:
curl --request POST --header "Content-Type: application/json" --header "iPlanetDirectoryPro: AQIC5wM2LY4Sf...EAAjAz" https://oamsrv01.intranet.net:8443/oam/json/sessions/?_action=isActive&tokenId=AQIC5wM2...4MQACUzEAAjAz
and
curl --request POST --header "Content-Type: application/json" https://oamsrv01.intranet.net:8443/oam/json/sessions/AQIC5w...g4NzI3MjE4MQACUzEAAjAz*?_action=validate
returns code: 501, Not Implemented
instead, this call:
curl -X POST -H "Content-Type: application/json" -H "Accept-API-Version: protocol=1.0,resource=2.0" -H "iPlanetDirectoryPro: AQIC5wM2LY4S...QACUzEAAjAz" -d '{"tokenId" : "AQIC5wM2LY4S...QACUzEAAjAz"}' https://oamsrv01.intranet.net:8443/oam/json/realms/root/sessions?_action=getSessionProperties
return an empty json {}
We have OpenAM 14.5.1.
Can you help me? Is there a working api to do so in this version?
Moreover https://oamsrv01.intranet.net:8443/oam/XUI/#api/explorer/applications return a 404 and from the gui, clicking on "API explorer"
(this url: https://oamsrv01.intranet.net:8443/oam/#api/explorer) we get a page with a list API categories I suppose, but on the right, where I think should be some documentation, theres only a white box...
Is it a known problem or does it have to do with our theme modifications? I admit I have not tried a "vanilla" version of the 14.5.1 yet.
Thank you so much,
Marco
Hello, @josecho you need to use OpenAM with OpenIG, more details here:
https://github.com/OpenIdentityPlatform/OpenIG/wiki/How-To-Protect-Web-Services-with-OpenIG
98-bypass.json
file
11/25/2020 03:23:02:015 PM UTC: Creating OpenAM suffix
ERROR: The server rejected the task for the following reason: None of the
Directory Server backends are configured with the requested backend ID or base
DNs that include the specified branches