Skip to content

Instantly share code, notes, and snippets.

@andrewvanbeek-okta
andrewvanbeek-okta / index.html
Created March 5, 2019 22:24
Ionic Material Cards with Bootstrap
<link href="https://fonts.googleapis.com/css?family=Nunito:200,300,400,600,700,900" rel="stylesheet">
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="card card-1">
<h3>Ionic Native</h3>
<p>A curated set of ES5/ES6/TypeScript wrappers for plugins to easily add any native functionality to your Ionic apps.</p>
</div>
</div>
@andrewvanbeek-okta
andrewvanbeek-okta / index.html
Created March 5, 2019 19:32
Material Card with Animated Featured Image
<div class="card transition">
<h2 class="transition">Awesome Headline</h2>
<p>Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.</p>
<div class="cta-container transition"><a href="#" class="cta">Call to action</a></div>
<div class="card_circle transition"></div>
</div>
exports.sendHappyPlaces = (req, res) => {
console.log("#*Y#*Y&#&*#&#T&&#^^&#&#&*#")
console.log(req.query)
console.log("#*Y#*Y&#&*#&#T&&#^^&#&#&*#")
const okta = require('@okta/okta-sdk-nodejs');
const client = new okta.Client({
orgUrl: '{Your Okta ORG}',
token: '{Your Okta Api Token}', // Obtained from Developer Dashboard
requestExecutor: new okta.DefaultRequestExecutor() // Will be added by default in 2.0
});
exports.sendHealthData = (req, res) => {
console.log("#*Y#*Y&#&*#&#T&&#^^&#&#&*#")
console.log(req.query)
console.log("#*Y#*Y&#&*#&#T&&#^^&#&#&*#")
const okta = require('@okta/okta-sdk-nodejs');
const client = new okta.Client({
orgUrl: '{YOUR OKTA ORG URL}',
token: '{YOUR OKTA API TOKEN}', // Obtained from Developer Dashboard
Backend Api Call
exports.getFeelGoodUsers = (req, res) => {
const OktaJwtVerifier = require('@okta/jwt-verifier');
console.log(req.query.token)
const oktaJwtVerifier = new OktaJwtVerifier({
issuer: '{YOU OKTA ORG URL}/oauth2/default'
})
var accessTokenString = req.query.token
Change a devise app from scratch
video link here: https://drive.google.com/file/d/1S59pmFe-Cp_s8aJLMax296x4AN0x0naK/view?usp=sharing
Add these Gems to your Gemfile
gem 'omniauth-oktaoauth'
gem 'activerecord-session_store'
@andrewvanbeek-okta
andrewvanbeek-okta / gist:080b0ee4ffc01bdd6d1cc592a87f7b6d
Created July 3, 2018 21:33
Secure Google Cloud Endpoints with Okta example
swagger: "2.0"
info:
title: "Airport Codes"
description: "Get the name of an airport from its three-letter IATA code."
version: "1.0.0"
host: "{project name}.appspot.com"
schemes:
- "https"
paths:
"/airportName":