Coder Social home page Coder Social logo

okta-inline-hook-handlers-js's Introduction

Okta Hook Handlers

A Serverless Application Module (SAM) stack that deploys an API to handle Okta Hooks using AWS Api Gateway and Lambda functions.

For more information about Okta Inline Hooks, see the Okta Inline Hooks documentation.

Endpoints

Error Handling

Any errors that should interrupt the relevant Okta process (such as registration or authentication) should be returned as an error object in the response. error.errorSummary will appear in the Okta System Log. Okta still expects a 200 status code when error objects are present in the response body.

Example: if Okta receives a 200 response from the /registration handler endpoint, and the response body contains the error object, the user registration will fail.

Example: if Okta receives a 200 response from the /registration handler endpoint, and there is no error object, Okta will attempt to process the valid commands in the response body.

Okta expects to receive 200 responses from the handler endpoints regardless of the outcome of the handler logic. Any response codes other than 200 will be logged in the System Log, but will not affect the relevant Okta process.

Example: if Okta receives a 4xx or 5xx response from the /registration handler endpoint, the user registration will be allowed to proceed.

Usage

  1. Local Build: sam build
  2. Deploy to AWS: sam deploy --guided (must have aws-cli appropriately configured). Note the output
  3. Fetch API key value: aws apigateway get-api-keys --include-values (if multiple, choose the one you just created)
  4. Construct the url from the output of Step 2: https://abc123.execute-api.us-west-1.amazonaws.com/token and add a header x-api-key with the API key value from (3)
  5. Send a POST request to the endpoint: curl -X POST -H "x-api-key:{api-key-value}" https://{api-id}.execute-api.{region}.amazonaws.com/token

okta-inline-hook-handlers-js's People

Contributors

cconcannon avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jbmml

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.