1.0.6 • Published 2 months ago
@hellocoop/cdk-client v1.0.6
@hellocoop/cdk-client
A Hellō Client CDK Construct for a Lambda Function
Quickstart
npm install @hellocoop/cdk-client
import { HelloClientConstruct } from '@hellocoop/cdk-client'
// Create the Hello Client Lambda and functionUrl
const helloClient = new HelloClientConstruct(this, 'HelloClient', {
clientID: CLIENT_ID, // required = your Hellō client_id from https://console.hello.coop
hostname: HOSTNAME, // recommended - public hostname
route: HELLO_API_ROUTE, // optional - defaults to /api/hellocoop
});
// add Hello Client Lambda origin as a behavior to a Cloud Front Distribution
distribution.addBehavior(HELLO_API_ROUTE, new origins.FunctionUrlOrigin(helloClient.functionUrl), {
viewerProtocolPolicy: cf.ViewerProtocolPolicy.HTTPS_ONLY,
allowedMethods: cf.AllowedMethods.ALLOW_ALL,
cachePolicy: cf.CachePolicy.CACHING_DISABLED,
originRequestPolicy: new cf.OriginRequestPolicy(this, 'hellocoop', {
queryStringBehavior: cf.OriginRequestQueryStringBehavior.all(),
cookieBehavior: cf.OriginRequestCookieBehavior.all(),
}),
});
See TBD for details on HelloClientConstruct
Client Usage
See TBD for details
Login
/api/hellocoop?op=login
Logout
/api/hellocoop?op=logout
Get Auth
/api/hellocoop?op=auth
Sample
See client-sample-stack.ts in cdk-sample
1.0.7-canary.3
2 months ago
1.0.7-canary.0
2 months ago
1.0.7-canary.1
2 months ago
1.0.7-canary.2
2 months ago
1.0.6
2 months ago
1.0.5
2 months ago
1.0.4
2 months ago
1.0.4-canary.12
2 months ago
1.0.4-canary.11
2 months ago
1.0.4-canary.14
2 months ago
1.0.4-canary.13
2 months ago
1.0.4-canary.16
2 months ago
1.0.4-canary.15
2 months ago
1.0.4-canary.18
2 months ago
1.0.4-canary.17
2 months ago
1.0.4-canary.19
2 months ago
1.0.4-canary.10
2 months ago
1.0.4-canary.9
2 months ago
1.0.4-canary.8
2 months ago
1.0.4-canary.7
2 months ago
1.0.4-canary.6
2 months ago
1.0.4-canary.5
2 months ago
1.0.4-canary.4
2 months ago
1.0.4-canary.3
2 months ago
1.0.4-canary.2
2 months ago
1.0.4-canary.1
2 months ago
1.0.4-canary.0
2 months ago
1.0.3-canary.0
2 months ago
1.0.2-canary.0
2 months ago
1.0.1-0
2 months ago
1.0.0
2 months ago