This file contains 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
{ | |
policyDocument: REPLACE_WITH_DENY_POLICY_DOCUMENT, | |
context: { | |
errorMessage: 'Provided token is expired or not enough permissions' | |
} | |
}; |
This file contains 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
// Expired Token Gateway Response | |
new GatewayResponse(this, 'ExpiredTokenGatewayResponse', { | |
restApi: api, | |
type: ResponseType.EXPIRED_TOKEN, | |
statusCode: '401', | |
templates: { | |
'application/json': JSON.stringify({ | |
message: 'Provided token is expired', | |
}), | |
}, |
This file contains 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
# other-service | |
functions: | |
testAuthorizer: | |
handler: src/test-auth.main | |
events: | |
- http: | |
path: test/auth | |
method: get | |
authorizer: | |
arn: ${cf:auth-service-${self:provider.stage}.TokenAuthorizerArn} |
This file contains 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
# auth-service | |
functions: | |
tokenAuthorizer: | |
handler: src/token-authorizer.main | |
environment: | |
AUTH0_JWKS_URI: REPLACE_WITH_REAL_VALUE | |
AUTH0_AUDIENCE: REPLACE_WITH_REAL_VALUE | |
AUTH0_ISSUER: REPLACE_WITH_REAL_VALUE | |
resources: | |
Outputs: |
This file contains 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
/* | |
Turns on the led using serial | |
*/ | |
// Initialize the LEDs | |
int blue = 9; | |
int green = 10; | |
int red = 11; | |
// Initialize the integers to keep the values of the leds |
This file contains 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
builder_image: &builder_image | |
docker: | |
- image: circleci/node:6.10.3-browsers | |
working_directory: ~/project | |
deploy_image: &deploy_image | |
docker: | |
- image: circleci/python:3.6.1 | |
working_directory: ~/project |
This file contains 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
option_settings: | |
- option_name: ROOT_URL | |
value: http://app-name.elasticbeanstalk.com | |
- option_name: MONGO_URL | |
value: mongodb://user:[email protected]:3001/app-name | |
- namespace: aws:elasticbeanstalk:container:nodejs | |
option_name: ProxyServer |