Skip to content

Instantly share code, notes, and snippets.

View maxan's full-sized avatar
🙃

Anderson Marinho maxan

🙃
View GitHub Profile
@maxan
maxan / CreateValidateJWT.cs
Created October 19, 2020 20:33 — forked from bschapendonk/CreateValidateJWT.cs
How to create and validate a JWT using System.IdentityModel.Tokens.Jwt
using System;
using System.IdentityModel.Tokens;
using System.Security.Claims;
using System.Security.Cryptography;
namespace CreateValidateJWT
{
class Program
{
static void Main(string[] args)
@maxan
maxan / WSSoapClient.php
Created November 11, 2020 00:05 — forked from silasrm/WSSoapClient.php
WS-Security for PHP SoapClient
<?php
/**
* This class can add WSSecurity authentication support to SOAP clients
* implemented with the PHP 5 SOAP extension.
*
* It extends the PHP 5 SOAP client support to add the necessary XML tags to
* the SOAP client requests in order to authenticate on behalf of a given
* user with a given password.
*