Build
Implement the Connector interface, understand which method handles which Zetect action, and package it as a fat JAR.
The Connector interface
1
Which method is called?
| Action | Method |
|---|---|
| IDENTITY_SYNC, SYNC_USER, SYNC_GROUP | handle() |
| CREATE_ACCOUNT, UPDATE_ACCOUNT, ADD_TO_GROUP, DELETE_ACCOUNT, REMOVE_FROM_GROUP, RESET_PASSWORD | handleProvisioning() |
See connector-requests-responses for the full request/response shape of every one of these, worked through against a complete example connector that implements all of them.
pom.xml essentials
| Dependency | Scope |
|---|---|
| io.cyiam:cyiam-connector-api | provided — the agent's classloader owns it; bundling it breaks classloader isolation. |
| jackson-databind, slf4j-api | provided — same reason. |
| Everything else | Default (compile) scope — bundled into the fat JAR by the shade plugin. |
The shade plugin must strip JAR signatures (META-INF/*.SF, *.DSA, *.RSA) or a signed dependency bundled transitively will throw SecurityException at class-load time.
Build the JAR
10