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
import { | |
Directive, | |
ElementRef, | |
EventEmitter, | |
OnDestroy, | |
Output | |
} from "@angular/core"; | |
import { | |
fromEvent, | |
merge, |
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
var crypto = require("crypto-js"); | |
var interval = setTimeout(function() {}, 10000); | |
var b64map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | |
var b64pad = "="; | |
var stsEndpoint = 'https://XX-XXX-XXX-XXX.XXX.net/ids'; | |
var tokenEndpoint = stsEndpoint + '/connect/token'; | |
var authorizationEndpoint = stsEndpoint + '/connect/authorize'; | |
var loginEndpoint = stsEndpoint + '/login'; |
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
using Microsoft.IdentityModel.Protocols; | |
using Microsoft.IdentityModel.Protocols.OpenIdConnect; | |
using Microsoft.IdentityModel.Tokens; | |
using System; | |
using System.IdentityModel.Tokens.Jwt; | |
using System.Threading; | |
namespace JwtValidator | |
{ | |
class Program |
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
import com.eviware.soapui.config.CredentialsConfig; | |
for(testSuiteItem in testSuite.project.getTestSuiteList()) { | |
for( testCaseItem in testSuiteItem.getTestCaseList()) { | |
for( testStep in testCaseItem.getTestStepsOfType(com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep) ) { | |
log.info("Setting basic auth for all REST test requests in testStep ["+testStep.getName()+"]") | |
testStep.getTestRequest().setEndpoint('https://localhost'); | |
testStep.getTestRequest().setSelectedAuthProfileAndAuthType("TEST_DM_TOKEN", com.eviware.soapui.config.CredentialsConfig.AuthType.O_AUTH_2_0); | |
} | |
} | |
} |
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
(function (window, document) { | |
var state = { | |
mouseUsage: false, | |
focusClass: 'focus-class', | |
documentBody: document.body | |
} | |
var controller = { |
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
const stsEndpoint = pm.variables.get("STSEndpoint"); | |
const clientCredentialBase64Encode = pm.variables.get("clientSecret64Encode"); | |
const scopes = pm.variables.get("scopes"); | |
let getToken = true; | |
const tokenEndpoint = stsEndpoint + '/connect/token'; | |
if (!pm.variables.get('token')) { | |
console.log('Token missing'); | |
} else { | |
getToken = false; |
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
# Sample Logstash configuration for creating a simple | |
# Beats -> Logstash -> Elasticsearch pipeline. | |
input { | |
beats { | |
port => 5044 | |
} | |
} | |
filter | |
{ |
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
import { BrowserModule } from '@angular/platform-browser'; | |
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | |
import { NgModule, ErrorHandler } from '@angular/core'; | |
import { ToastrModule, ToastContainerModule } from 'ngx-toastr'; | |
import { AppRoutingModule } from './app.routing.module'; | |
import { CoreModule } from './core/core.module'; | |
import { AppComponent } from './app.component'; | |
import { GlobalErrorHandler } from './error-handler.service'; | |
import { AppRootLoaderComponent } from './content-loader.component'; |
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
/// <summary> | |
/// Verify that all request to api must contain apikey | |
/// </summary> | |
public class APIKeyHandler : DelegatingHandler | |
{ | |
private string APIToken = "apiKey"; | |
protected override System.Threading.Tasks.Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) | |
{ | |
if (request.Method == HttpMethod.Options) goto success; |
NewerOlder