<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:PMingLiU;
panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.gmail-
{mso-style-name:gmail-;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.msoIns
{mso-style-type:export-only;
mso-style-name:"";
text-decoration:underline;
color:teal;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Gustáv,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks for the new connector config. I believe the logs show that with the new config, midPoint Test Connection errors out after getting a null result back when GETting api.slack.com/scim/v1/Schemas (see log snippet below)<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Using Postman, I confirmed that this is true—Querying for …/Schemas gives an empty response body.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Is there a way to skip that request to the Schemas endpoint?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> --Keith<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,281 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): Configuring connector connector:0a71bfb2-a5ad-424f-b45b-cce972d82cbe(ConnId com.evolveum.polygon.scim.ScimConnector
v1.4.4), provided configuration:<o:p></o:p></p>
<p class="MsoNormal"> configurationProperties: <o:p></o:p></p>
<p class="MsoNormal"> authentication: [ token (raw) ]<o:p></o:p></p>
<p class="MsoNormal"> token: [ <class MapXNode> (raw) ]<o:p></o:p></p>
<p class="MsoNormal"> endpoint: [ /scim (raw) ]<o:p></o:p></p>
<p class="MsoNormal"> version: [ /v1 (raw) ]<o:p></o:p></p>
<p class="MsoNormal"> baseUrl: [ <a href="https://api.slack.com/">https://api.slack.com</a> (raw) ]<o:p></o:p></p>
<p class="MsoNormal"> resultsHandlerConfiguration: <o:p></o:p></p>
<p class="MsoNormal"> <span lang="SV">enableNormalizingResultsHandler: false<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="SV"> enableFilteredResultsHandler: false<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="SV"> filteredResultsHandlerInValidationMode: true<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="SV"> </span>enableAttributesToGetSearchResultsHandler: false<o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,321 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): Configuring connector connector:0a71bfb2-a5ad-424f-b45b-cce972d82cbe(ConnId com.evolveum.polygon.scim.ScimConnector
v1.4.4), transformed configuration:<o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,321 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): P: authentication = token<o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,321 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): P: token = org.identityconnectors.common.security.GuardedString@f26fa483<o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,321 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): P: userName = null<o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,321 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): P: password = null<o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,321 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): P: clientSecret = null<o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,321 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): P: clientID = null<o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,321 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): P: endpoint = /scim<o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,321 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): P: version = /v1<o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,321 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): P: loginURL = null<o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,321 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): P: service = null<o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,321 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): P: baseUrl = <a href="https://api.slack.com/">https://api.slack.com</a><o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,321 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): P: proxyUrl = null<o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,321 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): P: proxyPortNumber = null<o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,352 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): Legacy schema (config): null<o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,353 [] [http-nio-8080-exec-6] TRACE (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl): Connector supported operations: [interface org.identityconnectors.framework.api.operations.SearchApiOp,
interface org.identityconnectors.framework.api.operations.UpdateApiOp, interface org.identityconnectors.framework.api.operations.ScriptOnConnectorApiOp, interface org.identityconnectors.framework.api.operations.CreateApiOp, interface org.identityconnectors.framework.api.operations.SchemaApiOp,
interface org.identityconnectors.framework.api.operations.ValidateApiOp, interface org.identityconnectors.framework.api.operations.TestApiOp, interface org.identityconnectors.framework.api.operations.DeleteApiOp, interface org.identityconnectors.framework.api.operations.GetApiOp]<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:04,807 [] [http-nio-8080-exec-6] WARN (com.evolveum.polygon.scim.StandardScimHandlingStrategy): method: null msg:Response string for the "schemas/" endpoint returned empty<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">2017-10-06 12:31:05,010 [] [http-nio-8080-exec-6] ERROR (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnIdUtil): ConnId Exception org.json.JSONException in connector:0a71bfb2-a5ad-424f-b45b-cce972d82cbe(ConnId com.evolveum.polygon.scim.ScimConnector
v1.4.4): ConnectorSpec(resource:86437f3a-661a-4135-876a-233b67256bf0(Slack), name=null, oid=0a71bfb2-a5ad-424f-b45b-cce972d82cbe): JSONArray[0] is not a JSONObject.<o:p></o:p></p>
<p class="MsoNormal">org.json.JSONException: JSONArray[0] is not a JSONObject.<o:p></o:p></p>
<p class="MsoNormal"> at org.json.JSONArray.getJSONObject(JSONArray.java:366) ~[na:na]<o:p></o:p></p>
<p class="MsoNormal"> at com.evolveum.polygon.scim.ParserSchemaScim.parseSchema(ParserSchemaScim.java:69) ~[na:na]<o:p></o:p></p>
<p class="MsoNormal"> at…<o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black">___________________________________</span><span style="font-size:10.5pt;color:#888888"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:#888888">email & jabber:
<a href="mailto:keith.hazelton@wisc.edu" target="_blank">keith.hazelton@wisc.edu</a><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:#888888">calendar: <a href="http://go.wisc.edu/i6zxx0" target="_blank">
http://go.wisc.edu/i6zxx0</a></span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">midPoint <midpoint-bounces@lists.evolveum.com> on behalf of Pálos Gustáv <gustav.palos@evolveum.com></span><span style="font-size:12.0pt;font-family:"PMingLiU",serif;color:black"><br>
</span><b><span style="font-size:12.0pt;color:black">Reply-To: </span></b><span style="font-size:12.0pt;color:black">"gustav.palos@evolveum.com" <gustav.palos@evolveum.com>, midPoint General Discussion <midpoint@lists.evolveum.com><br>
<b>Date: </b>Friday, October 6, 2017 at 02:05 <br>
<b>To: </b>midPoint General Discussion <midpoint@lists.evolveum.com><br>
<b>Subject: </b>Re: [midPoint] Configuring SCIM / Slack connector<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Hi, <o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">please try to replace yours connectorConfiguration section to this one & try test connection:<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><connectorConfiguration<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">xmlns:icfc="<a href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3">http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3</a>"><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><icfc:configurationProperties<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">xmlns:icfcp="<a href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/bundle/com.evolveum.polygon.scim.connector-scim/com.evolveum.polygon.scim.ScimConnector">http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/bundle/com.evolveum.polygon.scim.connector-scim/com.evolveum.polygon.scim.ScimConnector</a>"><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><icfcp:authentication>token</icfcp:authentication><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><icfcp:token><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><t:clearValue><b><u>your token</u></b></t:clearValue><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"></icfcp:token><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><icfcp:endpoint>/scim</icfcp:endpoint><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><icfcp:version>/v1</icfcp:version><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><icfcp:baseUrl><a href="https://api.slack.com">https://api.slack.com</a></icfcp:baseUrl><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"></icfc:configurationProperties><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><icfc:resultsHandlerConfiguration><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><icfc:enableNormalizingResultsHandler>false</icfc:enableNormalizingResultsHandler><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><icfc:enableFilteredResultsHandler>false</icfc:enableFilteredResultsHandler><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><icfc:filteredResultsHandlerInValidationMode>true</icfc:filteredResultsHandlerInValidationMode><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><icfc:enableAttributesToGetSearchResultsHandler>false</icfc:enableAttributesToGetSearchResultsHandler><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"></icfc:resultsHandlerConfiguration><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"></connectorConfiguration><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Best regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Gustav<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>