Git Product home page Git Product logo

castle-postman's Introduction

github.com/castle/castle-postman

This repository contains a Postman Collection to use for interactions with the Castle API.

To use this collection, you need an active Castle API key. Sign up for a free Castle account here.

Quick Start

Run in Postman

  1. Import Castle.postman_collection.json to your Postman Workspace
  2. Import Castle-Sandbox.postman_environment.json to your Postman Environments (this declares a single environment variable, api_secret)
  3. Set the api_secret environment variable to the API key for your Castle environment (found in your Castle Dashboard Settings - we recommend the "Sandbox" environment)
  4. Send requests! Start with a request from the Send Login Endpoint Events Folder

Try Castle with Real-World Scenarios for a Login Endpoint

Are you looking for a way to explore real-world scenarios with a Castle integration? We have a few play-by-play scenarios that show how Castle can help protect a user account via integration at the login endpoint.

Check out our Scenarios page for details.

Castle can integrate with many endpoints. Additionally, you can customize the behavior of Castle to meet business or security requirements for individual endpoints and user scenarios.

Collection Organization

The requests in this collection are organized into a few folders:

A Note on Using Custom Variables

All requests in the collection use "collection variables" which are purposely obfuscated for ease-of-use. Pre-request scripts and tests are used to modify these variables with precise intent, based on the folder name and hierarchy.

If you desire to set your own custom values for requests, you may create environment variables of the same name as the variable you're trying to overwrite. This allows you to delete or clear those custom environment variables in order to restore the "default" behavior of this collection.

Send Login Endpoint Events

  • This folder constructs $login.succeeded and $login.failed events with randomized or persistent data, and sends those events to Castle. The requests in this folder are organized into sub-folders based on whether randomized or persistent data is used.

with Random Data

  • Send events using randomly generated data for all user and device characteristics. This randomly-generated data is generated via pre-request scripts, and saved in the collection variables.

with Persistent Data

  • Send events using data fetched from the collection variables.

with Mostly-Persistent Data

  • Send events using mostly data that is fetched from the collection variables, but with one or two things randomly generated:

and a Random IP

  • Send events using a random IP, but otherwise persistent data (same user & device).

and a Random User-Agent

  • Send events using a random User-Agent, but otherwise persistent data (same user & IP).

and a Random IP and User-Agent

  • Send events using a random IP and User-Agent, but otherwise persistent data (same user).

and a Random User

  • Send events using random user details, but otherwise persistent data (same device info).

Device Management

  • This folder contains requests to Castle's Device Management Endpoints. These endpoints are designed to be used for admin-level management of end-user devices (i.e. for an internal dashboard). Some of them can be integrated with authenticated application endpoints to allow users to self-manage their own devices.

User Impersonation (Ignore Events)

  • This folder contains requests that demonstrate Castle's Impersonation Mode Capabilities. The /impersonate endpoint is used to tell Castle that a user is being impersonated (i.e. by an admin or support personnel) and therefore Castle should ignore the events originating from the device that is actively impersonating the user.

User Management

  • This folder contains requests to Castle's User Data Management Endpoints. These are used for deleting users or for retrieving all information about a user that Castle has stored.

castle-postman's People

Contributors

cconcannon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

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.