UNPKG

oktaopp

Version:

Simple service which accepts SCIM events from Okta

40 lines (34 loc) 1.24 kB
// Load the http module to create an http server. var http = require('http'); var ServerConfig = { "schemas": ["urn:scim:schemas:core:1.0","urn:okta:schemas:scim:providerconfig:1.0"], "documentationUrl":"https://support.okta.com/scim-fake-page.html", "patch": { "supported":false }, "bulk": { "supported":false }, "filter": { "supported":true, "maxResults": 100 }, "changePassword" : { "supported":true }, "sort": { "supported":false }, "etag": { "supported":false }, "authenticationSchemes": [], "urn:okta:schemas:scim:providerconfig:1.0": { "userManagementCapabilities": ["GROUP_PUSH", "IMPORT_NEW_USERS", "IMPORT_PROFILE_UPDATES", "PUSH_NEW_USERS", "PUSH_PASSWORD_UPDATES", "PUSH_PENDING_USERS", "PUSH_PROFILE_UPDATES", "PUSH_USER_DEACTIVATION", "REACTIVATE_USERS" ] }}; // Configure our HTTP server to respond with Hello World to all requests. var server = http.createServer(function (request, response) { response.end(JSON.stringify(ServerConfig)); }); // Listen on port 8000, IP defaults to 127.0.0.1 server.listen(3000); // Put a friendly message on the terminal console.log("Server running at http://127.0.0.1:3000/");