Skip to content

Commit

Permalink
fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
vzakharchenko committed Jul 18, 2021
1 parent f30d73b commit 5cc6dab
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 7 deletions.
1 change: 0 additions & 1 deletion examples/chain-service-calls/service3/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export async function service3Api(event: any, context: any, callback: any) {
const token = getToken(event);
const {message} = event.queryStringParameters;

// eslint-disable-next-line no-process-env
const res = await fetchData(`${process.env.SERVICE2_URL}service2Api?message=${message}->service3`, 'GET', {
Authorization: `Bearer ${token.tokenString}`,
});
Expand Down
34 changes: 34 additions & 0 deletions examples/keycloak-authorizer/ui/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"no-loops"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@shopify/esnext"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
},
"rules": {
"no-undef": 0,
"no-unused-vars": 0,
"@typescript-eslint/no-explicit-any": 0,
"id-length": 0,
"no-return-await": 0,
"no-process-env": 0
}
}
6 changes: 0 additions & 6 deletions examples/keycloak-authorizer/ui/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ app.set('views', path.join(__dirname, 'views'));

function renderUI(request:any, response:any, data:any) {
response.render('home', {
// eslint-disable-next-line no-process-env
host: process.env.LAMBDA_URL,
// eslint-disable-next-line no-process-env
hostJwks: process.env.LAMBDA_JWKS_URL,
...data,
});
Expand Down Expand Up @@ -77,7 +75,6 @@ app.post('/lambda', keycloak.protect(), keycloak.enforcer(['uiResource']), async
try {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line no-process-env
const res = await fetchData(process.env.LAMBDA_URL, 'GET', {
Authorization: `Bearer ${lambdaJWT.access_token}`,
});
Expand All @@ -101,7 +98,6 @@ app.post('/lambdaEnt', keycloak.protect(), keycloak.enforcer(['uiResource']), as
try {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line no-process-env
const res = await fetchData(process.env.LAMBDA_URL, 'GET', {
Authorization: `Bearer ${lambdaJWT.access_token}`,
});
Expand All @@ -125,7 +121,6 @@ app.post('/lambdaJwks', keycloak.protect(), keycloak.enforcer(['uiResource']), a
try {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line no-process-env
const res = await fetchData(process.env.LAMBDA_JWKS_URL, 'GET', {
Authorization: `Bearer ${lambdaJWT.access_token}`,
});
Expand All @@ -148,7 +143,6 @@ app.post('/lambdaJwksEnt', keycloak.protect(), keycloak.enforcer(['uiResource'])
try {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line no-process-env
const res = await fetchData(process.env.LAMBDA_JWKS_URL, 'GET', {
Authorization: `Bearer ${lambdaJWT.access_token}`,
});
Expand Down

0 comments on commit 5cc6dab

Please sign in to comment.