Coder Social home page Coder Social logo

okta-webhooks's Introduction

Okta Webhook handler

This project utilizes expressjs to listen for a single okta request (group.user_membership.add) and add's a user to your github server when it is found

Setup

Setup involves a few pieces. Firstly you a machine somewhere to run this code. Second you need to set up Okta to send webhooks to that server.

Express Server

  • Clone the repository
  • Install the dependencies
    • npm install
  • Copy .env.example to .env and fill out the information
Environment Variable Description
PORT Port to listen for events
PRIVATE_KEY_PATH SSL Private Key path
CERTIFICATE_PATH SSL Private Key Certificate Path
GROUP Okta group on which we are adding users
BASE_URL Base URL for your github instance in the form "https:///api/v3"
PAT Personal Access Token of the user making requests to the GitHub API
  • Finally run the server
    • node index.js
    • Note: Okta requires ssl enabled so you may have to setup your certificates first. See Let's Encrypt for a fast solution.

Okta Webhooks

  • Open the Okta Event Webhooks page Screen Shot 2021-12-16 at 2 38 29 PM
  • Add a new webhook Screen Shot 2021-12-16 at 2 39 20 PM
  • Add the DNS entry to your webhook and select user added to group event to listen to Screen Shot 2021-12-16 at 2 40 30 PM
  • Click Save and Continue
  • Finally select Verify
    • This sends a verification event to the server and will immediately respond that the server is verified Screen Shot 2021-12-16 at 2 43 07 PM

okta-webhooks's People

Stargazers

 avatar

Watchers

James Cloos avatar Chris McIntosh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.