A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);
FROM traefik:camembert | |
ADD traefik.toml . | |
EXPOSE 80 | |
EXPOSE 8080 | |
EXPOSE 443 |
import axios from 'axios' | |
let mockingEnabled = false | |
const mocks = {} | |
export function addMock(url, data) { | |
mocks[url] = data | |
} |
const echoPostRequest = { | |
url: 'https://<my url>.auth0.com/oauth/token', | |
method: 'POST', | |
header: 'Content-Type:application/json', | |
body: { | |
mode: 'application/json', | |
raw: JSON.stringify( | |
{ | |
client_id:'<your client ID>', | |
client_secret:'<your client secret>', |
trigger: | |
- master | |
pool: | |
vmImage: 'ubuntu-latest' | |
variables: | |
imageRepository: 'multi-stage-build-caching' | |
containerRegistry: 'ACR-Service-Connection-Name' | |
registryName: '[redacted].azurecr.io' |
/** Checks if the JWT is present and not expired | |
The token is expected to be found in `token` environment variable | |
*/ | |
function isValidToken() { | |
const token = pm.environment.get("token"); | |
if (!token) { | |
console.log("Token is missing"); | |
return false; | |
} | |
// Payload is retrieved after JSON parsing the base64 decoded `atob()` 2nd part of the JWT `[1]` |