Skip to content

Instantly share code, notes, and snippets.

View revsbech's full-sized avatar

Jan-Erik Revsbech revsbech

View GitHub Profile
@revsbech
revsbech / AuthenticationService.php
Last active June 12, 2017 09:02
TYPO3 JWT Test
<?php
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
<?php
require_once('vendor/autoload.php');
use Firebase\JWT\JWT;
use phpseclib\Crypt\RSA;
use phpseclib\Math\BigInteger;
class ApiDemo {
const OpenIdConfig = "https://cognito-identity.amazonaws.com/.well-known/openid-configuration";
const CognitoIdentityKeyEndpoint = "https://cognito-identity.amazonaws.com/.well-known/jwks_uri";
public function run() {
@revsbech
revsbech / docker-compose-https.yml
Created May 28, 2019 06:41
Docker file example for Sampension
version: '3.3'
services:
sslproxy:
image: fsouza/docker-ssl-proxy
ports:
- "443:443"
restart: always
environment:
DOMAIN: "api.local"