Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
vzakharchenko committed May 24, 2020
1 parent 6c70940 commit 23b00cf
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 46 deletions.
2 changes: 2 additions & 0 deletions example/keycloak-cloudfront/keycloak-cloudfront-cdk/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class KeycloakCloudFrontExampleStack extends cdk.Stack {
viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,
defaultRootObject: 'index.html',
});
// eslint-disable-next-line no-new
new s3Deployment.BucketDeployment(this, `BucketDeployment ${bucket}`, {
destinationBucket: bucket,
role,
Expand All @@ -98,5 +99,6 @@ class KeycloakCloudFrontExampleStack extends cdk.Stack {
}
}
const app = new cdk.App();
// eslint-disable-next-line no-new
new KeycloakCloudFrontExampleStack(app, `example-${bucketName}`);
app.synth();
18 changes: 9 additions & 9 deletions example/keycloak-cloudfront/lambda-edge-example/src/Tentants.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { privateKey, publicKey } from './sessionKeys';

export const tenant1KeycloakJson = {
"realm": "tenant1",
"auth-server-url": "http://localhost:8090/auth/",
"ssl-required": "external",
"resource": "tenant1Client",
"verify-token-audience": true,
"credentials": {
"secret": "27a2a2e2-bbe2-4949-8a24-111084a4e3ee"
realm: 'tenant1',
'auth-server-url': 'http://localhost:8090/auth/',
'ssl-required': 'external',
resource: 'tenant1Client',
'verify-token-audience': true,
credentials: {
secret: '27a2a2e2-bbe2-4949-8a24-111084a4e3ee',
},
"confidential-port": 0,
"policy-enforcer": {}
'confidential-port': 0,
'policy-enforcer': {},
};

export const tenant1Options = {
Expand Down
35 changes: 1 addition & 34 deletions example/keycloak-cloudfront/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"babel-plugin-dynamic-import-node": "^2.3.3",
"css-loader": "^3.5.3",
"eslint": "^7.0.0",
"escdlint-plugin-import": "^2.20.2",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.20.0",
"file-loader": "^6.0.0",
Expand All @@ -61,38 +61,5 @@
"react-dom": "^16.13.1",
"typeface-roboto": "0.0.75",
"yallist": "^4.0.0"
},
"eslintConfig": {
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"legacyDecorators": true
}
},
"extends": "airbnb",
"env": {
"browser": true,
"jest": true
},
"globals": {
"shallow": true,
"mount": true,
"render": true
},
"rules": {
"no-undef": 0,
"no-new": 0,
"react/jsx-indent": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
]
}
}
}
3 changes: 2 additions & 1 deletion example/keycloak-cloudfront/src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import {
} from 'keycloak-lambda-cloudfront-ui';

export default
class App extends React.Component { // eslint-disable-line react/prefer-stateless-function
class App extends React.Component {
// eslint-disable-next-line class-methods-use-this
render() {
const classes = makeStyles({
table: {
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@
"eslintConfig": {
"plugins": [],
"extends": "airbnb/base",
"parser": "babel-eslint",
"rules": {
"no-undef": 0,
"no-unused-vars": 0,
"import/extensions": 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 0,
Expand All @@ -56,8 +58,9 @@
"@babel/plugin-transform-runtime": "^7.9.6",
"@babel/polyfill": "^7.8.7",
"@babel/runtime": "^7.9.6",
"babel-eslint": "^10.1.0",
"coveralls": "^3.1.0",
"eslint": "^7.0.0",
"eslint": "^7.1.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-plugin-import": "^2.20.2",
"jest": "^26.0.1"
Expand All @@ -74,6 +77,6 @@
"node-forge": "^0.9.1",
"querystring": "^0.2.0",
"rsa-pem-to-jwk": "^1.1.3",
"uuid": "^8.0.0"
"uuid": "^8.1.0"
}
}

0 comments on commit 23b00cf

Please sign in to comment.