Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hiraro committed Sep 14, 2018
1 parent 8c17b5c commit ad7856d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cognito_self_ui/src/views/SignIn.vue
Expand Up @@ -35,9 +35,9 @@ export default {
await UserUtil.signIn(this.email, this.password);
const response = await AwsUtil.get(process.env.VUE_APP_API_NAME, `/${process.env.VUE_APP_API_STAGE}/token`);
this.$cookie.set("CloudFront-Key-Pair-Id", response.data["CloudFront-Key-Pair-Id"]);
this.$cookie.set("CloudFront-Policy", response.data["CloudFront-Policy"]);
this.$cookie.set("CloudFront-Signature", response.data["CloudFront-Signature"]);
this.$cookie.set("CloudFront-Key-Pair-Id", response.data["CloudFront-Key-Pair-Id"], {secure: true});
this.$cookie.set("CloudFront-Policy", response.data["CloudFront-Policy"], {secure: true});
this.$cookie.set("CloudFront-Signature", response.data["CloudFront-Signature"], {secure: true});
window.location = process.env.VUE_APP_PRIVATE_TOP_URL;
} catch(e) {
Expand Down
2 changes: 2 additions & 0 deletions signing_lambda_function/GetToken.js
Expand Up @@ -36,6 +36,8 @@ module.exports.handle = async (event, context, callback) => {
try {
const signed_cookie_obj = generateSignedCookie();

console.dir(JSON.stringify(signed_cookie_obj));

callback(null, {
statusCode: 200,
headers: {
Expand Down

0 comments on commit ad7856d

Please sign in to comment.