{
  "name": "signin",
  "runtime": "nodejs4.3",
  "description": "${project} - ${stage}: signin",
  "customName": false,
  "customRole": false,
  "handler": "signin/handler.handler",
  "timeout": 60,
  "memorySize": 512,
  "authorizer": {},
  "custom": {
    "excludePatterns": []
  },
  "endpoints": [
    {
      "path": "authentication/signin/{provider}",
      "method": "GET",
      "type": "AWS",
      "authorizationType": "none",
      "authorizerFunction": false,
      "apiKeyRequired": false,
      "requestParameters": {
        "integration.request.path.provider": "method.request.path.provider"
      },
      "requestTemplates": {
        "application/json": "{\"provider\":\"$input.params('provider')\",\"host\":\"$input.params().header.get('host')\",\"stage\":\"$context.stage\"}"
      },
      "responses": {
        "400": {
          "statusCode": "400"
        },
        "default": {
          "statusCode": "302",
          "responseParameters": {
            "method.response.header.Location": "integration.response.body.url"
          },
          "responseModels": {},
          "responseTemplates": {
            "application/json": ""
          }
        }
      }
    }
  ],
  "events": [],
  "environment": {
    "SERVERLESS_PROJECT": "serverless-authentication-boilerplate",
    "SERVERLESS_STAGE": "${stage}",
    "SERVERLESS_REGION": "${region}",
    "REDIRECT_CLIENT_URI": "${redirectClientURI}",
    "TOKEN_SECRET": "${tokenSecret}",
    "PROVIDER_FACEBOOK_ID": "${providerFacebookId}",
    "PROVIDER_FACEBOOK_SECRET": "${providerFacebookSecret}",
    "PROVIDER_GOOGLE_ID": "${providerGoogleId}",
    "PROVIDER_GOOGLE_SECRET": "${providerGoogleSecret}",
    "PROVIDER_MICROSOFT_ID": "${providerMicrosoftId}",
    "PROVIDER_MICROSOFT_SECRET": "${providerMicrosoftSecret}",
    "PROVIDER_CUSTOM_GOOGLE_ID": "${providerCustomGoogleId}",
    "PROVIDER_CUSTOM_GOOGLE_SECRET": "${providerCustomGoogleSecret}"
  },
  "vpc": {
    "securityGroupIds": [],
    "subnetIds": []
  }
}
