Reputation: 11
When I run the playground2 openid connect example, I can still see the photos even if I deny authorization. I have the user login in and authenticate successfully, but deny the authorization. From the OpenID Connect specification, an error code should be returned, but instead I am still getting the authorization code. I am running WSO2 Identity Server 4.6.
Why is it still sending an authorization token?
Upvotes: 1
Views: 656
Reputation: 1
The validation of the Access Token is disabled in the playground app. You could enable it with un-commenting line 34-40 in 'oauth-access-resource.jsp.
if (!client.validateAuthenticationRequest(oauthReq)) {
%>
<script type="text/javascript">
window.location = "oauth2.jsp?reset=true&error='Invalid Access Attempt'";
</script>
<%
}
Upvotes: 0