Skip to content

Instantly share code, notes, and snippets.

View daserzw's full-sized avatar

Davide Vaghetti daserzw

  • Consortium GARR
  • Italy
View GitHub Profile
---
markmap:
colorFreezeLevel: 10
---
# .
## REFEDS
- enforce contacts
@daserzw
daserzw / eduGAIN_scope_ORGNAME.py
Created April 26, 2021 15:07
eduGAIN scope and orgname
#!/usr/bin/env python3
import requests
from xml.etree import ElementTree as ET
def strip_start(s, start):
if s.startswith(start):
return s[len(start):]
return s
@daserzw
daserzw / attribute-resolver-idem-ad.xml
Last active October 18, 2022 05:14
IDEM Shibboleth Active Directory Attribute Resolver
<?xml version="1.0" encoding="UTF-8"?>
<AttributeResolver
xmlns="urn:mace:shibboleth:2.0:resolver"
xmlns:sec="urn:mace:shibboleth:2.0:security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:mace:shibboleth:2.0:resolver http://shibboleth.net/schema/idp/shibboleth-attribute-resolver.xsd
urn:mace:shibboleth:2.0:security http://shibboleth.net/schema/idp/shibboleth-security.xsd">
<!-- ========================================== -->

The case for an OIDC ephemeral ID

The OpenID Connect Core 1.0 specification defines two subject types, public and pairwise.

The public subject type is used to provide "the same sub (subject) value to all Clients" or Relying Parties (RPs), while the pairwise one is meant to provide "a different sub value to each Client, so as not to enable Clients to correlate the End-User's activities without permission".

In other terms, the public subject type is a globally unique persistent identifier, while the pairwise one is targeted to a specific RP.

Ephemeral vs Pairwise

### Keybase proof
I hereby claim:
* I am daserzw on github.
* I am davidevaghetti (https://keybase.io/davidevaghetti) on keybase.
* I have a public key ASBRqUFDnD0OtZwQIHIQ2-C_FsADm8zpAX0PDs4Bd0x5eAo
To claim this, I am signing this object:
#/usr/bin/env bash
pkill -f rp.py
pkill -f server.py
rm -rf oidc-swamid-federation
#!/usr/bin/env bash
git clone https://github.com/rohe/oidc-swamid-federation.git
cd oidc-swamid-federation
python3.5 -mvenv venv
. venv/bin/activate
pip install --no-cache-dir oidcop oidcrp fedoidcendpoint fedoidcrp atomicwrites
./create_fo_bundle.py
sleep 1
cd MDSS
# git tag
git tag -am "annotation goes here" tagname_goes_here # cut a tag
git tag -d tagname_goes_here # burn it
git tag -am "annotation goes here" tagname_goes_here # cut another tag
git push --tags # push tags to remote
git push origin :refs/tags/tagname_goes_here # delete tag from remote
#!/usr/bin/python
# Copyright 2010 University Corporation for Advanced Internet Development, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#