#Linux Commands
search for word "stuff" in a file called filename and returns all lines with the word "stuff"
grep "stuff" filename.ext
package onelogin | |
import ( | |
"testing" | |
"github.com/hashicorp/terraform-plugin-sdk/helper/resource" | |
) | |
func TestAccApp_crud(t *testing.T) { | |
base := GetFixture("onelogin_app_example.tf", t) |
package onelogin | |
import ( | |
"errors" | |
"os" | |
"testing" | |
"github.com/hashicorp/terraform-plugin-sdk/helper/schema" | |
"github.com/hashicorp/terraform-plugin-sdk/terraform" | |
) |
provider "onelogin" { | |
client_id = "xxxxxxxxxxxxxxxxxxxx" | |
client_secret = "xxxxxxxxxxxxxxxxxxxx" | |
url = "https://api.us.onelogin.com" | |
} | |
resource "onelogin_saml_apps" "aws-sample-1"{ | |
connector_id = 50534 | |
name = "AWS Multi Role - Terraform change" | |
description = "AWS Multi Role app created via Terraform" |
on: | |
push: | |
tags: | |
- '*' | |
name: Release | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout |
#!/usr/bin/env bash | |
package=$1 | |
if [[ -z "$package" ]]; then | |
echo "usage: $0 <package-name>" | |
exit 1 | |
fi | |
package_split=(${package//\// }) | |
package_name=${package_split[${#package_split[@]}-1]} |
import React, { Component } from 'react'; | |
import axios from 'axios'; | |
import qs from "qs"; | |
import * as base64 from 'base64-js' | |
import SubmitButton from '../../ui_components/buttons/submit_button'; | |
import AppWrapper from '../../ui_components/app_wrapper/app_wrapper' | |
import Popup from '../../ui_components/popup/popup'; | |
class LoginOIDCPage extends Component { |
const createCodeChallenge = ( codeVerifier ) => { | |
if ( typeof window !== 'undefined' && !!( window.crypto ) && !!( window.crypto.subtle ) ) { | |
return new Promise( ( resolve, reject ) => { | |
let codeVerifierCharCodes = textEncodeLite( codeVerifier ); | |
crypto.subtle | |
.digest( 'SHA-256', codeVerifierCharCodes ) | |
.then( | |
hashedCharCodes => resolve( urlSafe( new Uint8Array(hashedCharCodes) ) ), | |
error => reject( error ) | |
); |
const createCodeVerifier = ( size ) => { | |
const charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.~'; | |
const charsetIndexBuffer = new Uint8Array( size ); | |
for ( let i = 0; i < size; i += 1 ) { | |
charsetIndexBuffer[i] = ( Math.random() * charset.length ) | 0; | |
} | |
let randomChars = []; | |
for ( let i = 0; i < charsetIndexBuffer.byteLength; i += 1 ) { |