Skip to content

Instantly share code, notes, and snippets.

View Gh0stWalk3r's full-sized avatar
⚔️
Always build before commit

Gregor Dostal Gh0stWalk3r

⚔️
Always build before commit
View GitHub Profile
@Gh0stWalk3r
Gh0stWalk3r / signApiGatewayAngular2HttpRequest.ts
Created August 13, 2018 19:53 — forked from ckimrie/signApiGatewayAngular2HttpRequest.ts
How to use AWS Cognito to sign an http request to a custom AWS Api Gateway using IAMs Authorization.
//---- Angular 2 Http Service Example ----
import {Injectable} from "@angular/core";
import {Http, Headers} from "@angular/http";
const AWS = require("aws-sdk");
@Injectable()
export class ApiGatewayService {
constructor(private http:Http){