openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:2048
openssl rsa -pubout -in private_key.pem -out public_key.pem
This file contains 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 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 python3 | |
import this | |
print("hello") |
This file contains 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 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 |
NewerOlder