Skip to content

Instantly share code, notes, and snippets.

View patrickvinograd's full-sized avatar

Patrick Vinograd patrickvinograd

  • Portland, OR
View GitHub Profile
@patrickvinograd
patrickvinograd / saml_decrypt.rb
Created March 28, 2020 21:01
Decrypt a SAML assertion on the command line, in Ruby
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'onelogin/ruby-saml'
require 'optparse'
KEY_PATH = 'decrypt.key'
@options = {}
OptionParser.new do |opts|

This document describes the integration design between Vets.gov and the Veteran ID Card (VIC) service, for the purposes of allowing verified veterans to obtain a physical ID card.

Integration Overview

Vets.gov will provide an entry point for the ID card workflow; when a verified veteran starts the workflow, Vets.gov will gather the required data attributes about that veteran and send a signed request to VIC.

VIC will accept the request from Vets.gov as a trusted source for veteran status and other identifiers. VIC will then provide a web interface allowing users to upload a photo, provide some additional data, and correct some of the data provided by Vets.gov/VA that is known to be unreliable (specifically address data).

VIC will then integrate with a third-party (currently Office Depot) to manage the actual printing and delivery of the physical ID card.

API Description

{
"data": [
{
"attributes": {
"access": {
"health": {
"effective_date": "2017-03-31",
"mental_health": {
"established": 0.0,
"new": 4.0

Keybase proof

I hereby claim:

  • I am patrickvinograd on github.
  • I am vinograd (https://keybase.io/vinograd) on keybase.
  • I have a public key whose fingerprint is F698 E707 1AA2 FDC5 AD1B 02BA B492 EAA7 909F E415

To claim this, I am signing this object: