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
# Zakupy | |
# Sign in into system | |
POST {{host}}/v1/auth/signin | |
Accept: application/json | |
Content-Type: application/json | |
{ | |
"email": "email", | |
"password": "password" |
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
FROM node:16-alpine AS builder | |
WORKDIR /app | |
COPY package.json yarn.lock ./ | |
RUN yarn | |
COPY . ./ |
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
VPN_IPSEC_PSK=secret | |
VPN_USER=user | |
VPN_PASSWORD=pass | |
VPN_ADDL_USERS=user2 user3 | |
VPN_ADDL_PASSWORDS=pass2 pass3 |
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 java.security.MessageDigest | |
import javax.crypto.Mac | |
import javax.crypto.spec.SecretKeySpec | |
fun checkSignature(token: String, initData: String): Boolean { | |
// Convert the data string to a map | |
val initDataMap = initData.split('&') | |
.map { it.split('=') } | |
.associate { it[0] to it[1] } | |
.toMutableMap() |
OlderNewer