Skip to content

Instantly share code, notes, and snippets.

Avatar

Andy March andymarch

View GitHub Profile
@andymarch
andymarch / app.go
Created Apr 3, 2020
Create Okta App in Go
View app.go
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
@andymarch
andymarch / index.js
Last active Mar 26, 2020
Okta Hapi Bell implementation with Okta.
View index.js
// Load modules
require('dotenv').config()
const bell = require('@hapi/bell')
const hapi = require('@hapi/hapi')
const authCookie = require('@hapi/cookie')
const config = {
cookiePwd: 'cookiecookiecookiecookiecookiecookiecookiecookiecookie',
okta: {
domain: process.env.DOMAIN,
View Widget Snippets: Better UX for delivered MFA prompts
<style>
.mfa-verify-passcode .o-form-fieldset-container{
display: flex !important;
flex-direction: column;
align-items: center;
}
.mfa-verify-passcode .auth-passcode{
order:2;
text-align: center
}
@andymarch
andymarch / keybase.md
Created Jul 21, 2015
Account verification on Keybase
View keybase.md

Keybase proof

I hereby claim:

  • I am andymarch on github.
  • I am andymarch (https://keybase.io/andymarch) on keybase.
  • I have a public key whose fingerprint is 30C1 52DB 68DD AF98 F2CF C774 D17A EBD2 5637 266D

To claim this, I am signing this object:

@andymarch
andymarch / GooglePhotoTakeout
Created Jan 3, 2015
Copy the contents of a Google Takeout for photos to create a local copy
View GooglePhotoTakeout
Function CopyGooglePhotoTakeout
{
Param(
[Parameter(Mandatory=$true)]
[string]$sourcePath,
[Parameter(Mandatory=$true)]
[string]$destinationPath,
[Parameter(Mandatory=$true)]
[bool]$skipEdits
)