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
#!/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# vim: ts=4 sw=4 et | |
# Given a GCSv5 endpoint UUID, look up the IP addresses of its DTNs. | |
# WARNING: Although this is more than bare-bones code, in that it | |
# does have a fair amount of error checking, you should not consider | |
# it production-ready. In particular because it relies GCSv5 | |
# endpoint APIs that aren't documented. | |
# © 2021 A. Karl Kornel |
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 | |
# vim: ts=4 sw=4 et | |
# -*- coding: utf-8 -*- | |
# SPDX-License-Identifier: MIT | |
# This was written by A. Karl Kornel <akkornel@stanford.edu> | |
# It is © The Board of Trustees of the Leleand Stanford Junior University | |
# It is made available under the MIT License | |
# https://opensource.org/licenses/MIT |
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
import json | |
import jwcrypto.jwk | |
import jwcrypto.jwt | |
import jwcrypto.common | |
import re | |
import requests | |
# Get the OpenID Connect configuration | |
oauth_config_url = 'https://accounts.google.com/.well-known/openid-configuration' | |
oidc_config = requests.get(oauth_config_url).json() |
OlderNewer