'Additional validation when following the implicit flow.'

def openid_implicit_authorization_validator(self, request):

    if (request.response_type == u'token'):
        return {}
    if ((not request.scopes) or (u'openid' not in request.scopes)):
        return {}
    if (not request.nonce):
        desc = u'Request    is    missing    mandatory    nonce    parameter.'
        raise InvalidRequestError(request=request, description=desc)
    self._inflate_claims(request)
    return {u'nonce': request.nonce, u'claims': request.claims}
