npx https://gist.github.com/pauldougan/45e7e9324257a9b34d1f051b7805e513
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "@context": [ | |
| "https://www.w3.org/ns/did/v1", | |
| "https://www.w3.org/ns/security/jwk/v1" | |
| ], | |
| "id": "did:web:identity.account.gov.uk", | |
| "assertionMethod": [ | |
| { | |
| "id": "cfeebabeeac2d9749993523f143fbc3f8c83411853f2996323a2efbd7acda754", | |
| "type": "JsonWebKey", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.AspNetCore.Authentication; | |
| using Microsoft.AspNetCore.Authentication.Cookies; | |
| using Microsoft.AspNetCore.Authentication.OpenIdConnect; | |
| using Microsoft.AspNetCore.CookiePolicy; | |
| using Microsoft.IdentityModel.Tokens; | |
| using System.IdentityModel.Tokens.Jwt; | |
| using System.Security.Cryptography; | |
| using System.Security.Claims; | |
| namespace govuk_one_login_aspdotnet_core |
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tool | description | purpose | |
|---|---|---|---|
| curl | https cli tool | access http(s) endpoints and send GET|POST requests | |
| cyberchef | swiss army penknife crypto tool | general crypto (hashing encoding etc) | |
| fx | JSON browsing tool | inspect json for a quick look | |
| jwt | JWT CLI tool | encoding and decoding of JWT | |
| jwt.ms | Online JWT tool | decode JWT | |
| jq | JSON tool | format and process JSON data | |
| visidata | swiss army penknife data tool for tabular data | exploring and converting tabular date | |
| charles | debugging http proxy | wire level tracing of http flows |
A curated list of OIDC Connect libraries in a variety of languages and some examples public example repositories that use these Libraries.
Refrence material to inspire developer wishing to build relying parties to integrate with the GOV.UK One Login identity provider.
Some minimal metadata for architect things
| field | description |
|---|---|
| owner | the department that owns the resource |
| thing | the type of thing (adr or rfc) |
| status | the status of the resource (current or legacy) |
| org | the GitHub organisation |
| repo | the GitHub repository |
| path | the path to the resource |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # run the GOV.UK One Login tech docs locally from https://github.com/govuk-one-login/authentication-tech-docs | |
| ORG=govuk-one-login | |
| REPO=prototype | |
| NODE_VERSION=20.11.0 | |
| DIR=$(mktemp -d /tmp/${ORG}_${REPO}_XXXXXX) | |
| echo $DIR | |
| cd $DIR | |
| git clone https://github.com/$ORG/$REPO | |
| cd $REPO |
A script to spin up an ephemeral copy of the GOV.UK One prototye kit locally.
It clones the documenation repo into a temporary folder locally, fixes the version of Node.js, installs dependencies and runs the server.
Review pages at http://localhost:3000