Coder Social home page Coder Social logo

sko2023-terraform-p1az's Introduction

SKO 2023 - PingOne Authorize

This repo contains the configuration that will be discussed in the P1AZ session.

Folders

terraform - Contains the HCL to create as much as possible of the PingOne Environment davinci - Contains a DaVinci flow used in the Labs policies - Contains the Policy sets for the Labs

Terraform

Terraform HCL is provided to create the PingOne Environment that is needed for the P1AZ Trust Framework and Policies.

To execute, clone this repo and do the following:

Add a terraform.tfvars file to the cloned terraform folder.

region = "{{ NorthAmerica | Canada | Asia | Europe }}"
organization_id = "{{orgId}}"
admin_env_id = "{{adminEnvId}}"
admin_user_id = "{{adminUserId}}"
worker_id = "{{workerId}}"
worker_secret = "{{workerSecret}}"
deploy_name = "SKO2023 - PingOne Authorize"

Replace {{ ... }} with your PingOne details

At a command line:

terraform init
terraform plan

If the plan fails - check your terraform.tfvars values.

If the plan succeeds:

terraform apply —auto-approve

Terraform should execute and display a set of values that need to be manually entered into the created PingOne users

To get the proper JSON object for children,

terraform output -raw children

Note The output has an extra % character - don't copy it.

Clicky Clicky (for the non Terraform folks)

PingOne Environment

Create a PingOne Environment.

PingOne Directory

Add 2 Custom Attributes

Name Settings
parent STRING
children JSON multi-valued

Add 3 Users

  • Parent
  • Child1
  • Child2

PingOne Authorize

Add PingOne Authorize to your Environment

Note Make sure you can Import -- check the Version History tab. If you can't - ask for the Feature Flag to be added to this Env

Additional PingOne Configuration

PingOne Users

Data for the Labs need to be manually added to the following Users:

P1 User Attribute Value
child1 "Parent ID" parentId (Terraform ouput)
child2 "Parent ID" parentId (Terraform ouput)
parent "Children" [{"id":"{{child1.id}}","limit":100},{"id":"{{child2.id}}","limit":200}]

PingOne Authorize

Decision Endpoints -- Test

  • Enable "Record recent decisions"

Labs

sko2023-terraform-p1az's People

Contributors

cprice-ping avatar

Watchers

James Cloos avatar  avatar  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.