RESTインタフェース

認証(token発行)

$ curl -d "username=ichiro&password=ichiro123" \
http://localhost:9080/openam/identity/authenticate

token.id=AQIC5wM2LY4SfcyfzTdB0Vj1iwV1q38QzwdsZ8Vo0hZRyx4.*AAJTSQACMDE.*

token チェック

$ curl -d "tokenid=AQIC5wM2LY4SfcyfzTdB0Vj1iwV1q38QzwdsZ8Vo0hZRyx4.*AAJTSQACMDE.*" \
http://localhost:9080/openam/identity/isTokenValid

boolean=true

ユーザ属性参照

$ curl -d "attribute_names=*&subjectid=AQIC5wM2LY4SfcyfzTdB0Vj1iwV1q38QzwdsZ8Vo0hZRyx4.*AAJTSQACMDE.*" \
http://localhost:9080/openam/identity/attributes

userdetails.token.id=AQIC5wM2LY4SfcyfzTdB0Vj1iwV1q38QzwdsZ8Vo0hZRyx4.*AAJTSQACMDE.*
userdetails.role=id=executive,ou=group,dc=opensso,dc=java,dc=net
userdetails.attribute.name=uid
userdetails.attribute.value=ichiro
userdetails.attribute.name=userpassword
userdetails.attribute.value={SSHA}u7vbdp84R71rV3dGbDDyf7FKRxmqvV/NVqdHWQ==
userdetails.attribute.name=sn
userdetails.attribute.value=Tanaka
userdetails.attribute.name=cn
userdetails.attribute.value=田中一朗
userdetails.attribute.name=givenname
userdetails.attribute.value=Ichiro
userdetails.attribute.name=inetuserstatus
userdetails.attribute.value=Active
userdetails.attribute.name=dn
userdetails.attribute.value=uid=ichiro,ou=people,dc=opensso,dc=java,dc=net
userdetails.attribute.name=objectclass
userdetails.attribute.value=person
userdetails.attribute.value=sunIdentityServerLibertyPPService
userdetails.attribute.value=inetorgperson
userdetails.attribute.value=sunFederationManagerDataStore
userdetails.attribute.value=iPlanetPreferences
userdetails.attribute.value=iplanet-am-auth-configuration-service
userdetails.attribute.value=organizationalperson
userdetails.attribute.value=sunFMSAML2NameIdentifier
userdetails.attribute.value=inetuser
userdetails.attribute.value=iplanet-am-managed-person
userdetails.attribute.value=iplanet-am-user-service
userdetails.attribute.value=sunAMAuthAccountLockout
userdetails.attribute.value=top

logout (token無効化)

$ curl -d "subjectid=AQIC5wM2LY4SfcyfzTdB0Vj1iwV1q38QzwdsZ8Vo0hZRyx4.*AAJTSQACMDE.*" \
http://localhost:9080/openam/identity/logout

Java#OpenAM


添付ファイル: fileauth1.png 2213件 [詳細]

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS   sitemap
Last-modified: 2011-11-06 (日) 14:24:28 (4799d)
Short-URL: http://at-sushi.com/pukiwiki/index.php?cmd=s&k=ec923b2ed1
ISBN10
ISBN13
9784061426061