Fix return URL in resource and mock_openid