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
from typing import Any, Dict, List, Optional | |
from OpenSSL import crypto | |
import jwt | |
from jwt.utils import base64url_decode | |
import requests | |
import logging | |
ROOT_CER_URL = "https://www.apple.com/certificateauthority/AppleRootCA-G3.cer" | |
G6_CER_URL = "https://www.apple.com/certificateauthority/AppleWWDRCAG6.cer" |
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
package app_store_server_notification_verifier | |
import ( | |
"crypto/ecdsa" | |
"crypto/x509" | |
"encoding/base64" | |
"errors" | |
"io/ioutil" | |
"github.com/golang-jwt/jwt" |
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
// fetch ace's language tools module: | |
var langTools = ace.require('ace/ext/language_tools'); | |
// data stub: | |
var sqlTables = [ | |
{ name: 'users', description: 'Users in the system' }, | |
{ name: 'userGroups', description: 'User groups to which users belong' }, | |
{ name: 'customers', description: 'Customer entries' }, | |
{ name: 'companies', description: 'Legal entities of customers' }, | |
{ name: 'loginLog', description: 'Log entries for user log-ins' }, |