This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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, |
OlderNewer