Got 401 Unauthenticated result by using wso2 API-M store rest api
Environment :
- wso2 API-M + wso2 Identity server (Key manager) and they shared the same user store.
- 2 service providers(publisher and store) and 2 identity providers(Google and Facebook) in the carbon.super tenant.
- APIM SSO service is enabled and issuer IDs follow above.
- Enable OAuth2.0 users(Google and Facebook) to login.
- 3 tenants (carbon.super , TA and TB) in the environment.
- Publisher SP and Store SP are both in SaaS mode.
referance :
Step:
1 : Got access token with apim:subscribe scope
2 : Access create application api
Then the response got the 401 error.
APIM server log :
==> ./repository/logs/wso2carbon.log <==
TID: [-1234] [] [2016-06-20 02:36:54,931] ERROR {org.wso2.carbon.apimgt.rest.api.util.impl.WebAppAuthenticatorImpl} - You cannot access API as scope validation failed {org.wso2.carbon.apimgt.rest.api.util.impl.WebAppAuthenticatorImpl}
==> ./repository/logs/wso2-apigw-errors.log <==
2016-06-20 02:36:54,931 [-] [http-nio-9443-exec-20] ERROR WebAppAuthenticatorImpl You cannot access API as scope validation failed