我失去了WSOAuth20Token

时间:2017-07-10 15:39:48

标签: oauth-2.0 websphere access-token

我在Websphere 8.0.0.5中使用OAuth2。我获得了访问令牌并建立了链接。例如:https://IP:PORT/wps/myportal/PATH/?access_token=CARN1QbcWYUfT9kL1yZ13hOxXV0S5G0PNHRwDs22。当我点击此链接时,我访问OK,我可以获取令牌。但是,在第二个意图中我丢失了令牌。

示例:

1)访问以生成访问令牌

Asunto:
Sujeto: defaultWIMFileBasedRealm/userapp
Credencial pública: com.ibm.ws.security.auth.WSCredentialImpl@a60840bf
Credencial privada: com.ibm.ws.security.token.SingleSignonTokenImpl@6b291942
Credencial privada: com.ibm.ws.security.token.AuthenticationTokenImpl@bdc2e900
Credencial privada: com.ibm.ws.security.token.AuthorizationTokenImpl@e2b283b9

2)生成带访问令牌的链接

https://IP:10029/wps/myportal/PATH/?access_token=spPHk7MMBsianOvLI9yLYFepIpXyBkj5lghoWp6J

3)点击链接 - 第一个意图

Asunto:
Sujeto: defaultWIMFileBasedRealm/wasadmin
Credencial pública: com.ibm.ws.security.auth.WSCredentialImpl@5110eb9e
Credencial privada: Provider:OAuthProvider,user:wasadmin,client:user,expiration:Mon Jul 10 16:06:53 ART 2017,token:spPHk7MMBsianOvLI9yLYFepIpXyBkj5lghoWp6J,
Credencial privada: {OAuthProvider=OAuthProvider, com.ibm.wsspi.security.cred.cacheKey=OAuthProvider-692974521}
Credencial privada: com.ibm.ws.security.token.SingleSignonTokenImpl@11ebdd0c
Credencial privada: com.ibm.ws.security.token.AuthenticationTokenImpl@caf4f5f9
Credencial privada: com.ibm.ws.security.token.AuthorizationTokenImpl@5ed614f8

4)点击链接 - 第二个意图

Asunto:
Sujeto: defaultWIMFileBasedRealm/wasadmin
Credencial pública: com.ibm.ws.security.auth.WSCredentialImpl@a64eaabc
Credencial privada: {com.ibm.wsspi.security.cred.cacheKey=OAuthProvider-692974521, OAuthProvider=OAuthProvider}
Credencial privada: com.ibm.ws.security.token.SingleSignonTokenImpl@39d13d7d
Credencial privada: com.ibm.ws.security.token.AuthenticationTokenImpl@c38fb578
Credencial privada:    com.ibm.ws.security.token.AuthorizationTokenImpl@738fd8aa

任何帮助?

ERA

0 个答案:

没有答案