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
// src/app/services/token-interceptor.service.ts | |
import { Injectable } from "@angular/core"; | |
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from "@angular/common/http"; | |
import { AuthenticationService } from "../authentication.service"; | |
import { Observable } from "rxjs/Observable"; | |
import { BehaviorSubject } from "rxjs/BehaviorSubject"; | |
@Injectable() | |
export class RefreshTokenInterceptor implements HttpInterceptor { |
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
<?php | |
//source: http://www.zedwood.com/article/php-curl-connect-with-ssl-client-certificate | |
class SecureRequest | |
{ | |
private m_publicCertPath; //"/public_cert.pem" | |
private m_privateCertPath; //"/private.pem") | |
private m_caInfoPAth; //"/etc/ssl/certs/ca-certificates.crt" | |
public function init($publicCertPath, $privateCertPath, $caInfoPath) { | |
$this->m_publicCertPath = $publicCertPAth; |