Git Product home page Git Product logo

samples's Introduction

Box Samples

This repo is dedicated to sharing code snippets and samples to demonstrate how to get the most out of the Box platform & API. It will include specific use cases, showcasing integrations and other creative uses of the Box API.

Index

box-node-lambda-sample This sample demonstrates how to call Box APIs from an AWS Lambda function using the Box Node SDK. This lets you call Box from a Lambda function.

box-node-webhook-to-lambda-sample This sample shows how to connect a Box webhook to an AWS Lambda function via API Gateway. This lets you call a Lambda function from Box.

box-node-rekognition-lambdas-sample This sample shows how to connect Box with AWS Rekognition service. An AWS lambda function uses the AWS Rekognitions service to analyse the image uploaded in Box and updates the metadata of the image file in Box.

box-node-cognito-lambdas-sample This sample shows how to integrate Box with AWS Cognito service. Every user created in the Cognito pool is created as an app user in the Box enterprise. Using the Cognito JWT user token, the app user token can be generated from Box. Using Box's app user token, the user performs operations in Box.

box-java-servlet-skeleton-app This sample is a simple Java servlet demonstrating the basics of authentication and token management for creating an App User based custom app using the Box Platform APIs. The project includes server side HTML rendering and an example on how to upload to Box directly from the client side.

box-aspnet-mvc-skeleton-app This sample is a .Net MVC app demonstrating the basics of authentication and token management for creating an App User based custom app using the Box Platform APIs. The project includes server side HTML rendering and an example on how to upload to Box directly from the client side.

box-node-express-skeleton-app This sample is a Node.js app using the Express framework demonstrating the basics of authentication and token management with caching for creating an App User based custom app using the Box Platform APIs. The project includes server side HTML rendering and an example on how to upload to Box directly from the client side.

box-auth0-angular2-skeleton-app-sample This sample demonstrates how to build a serverless web client application in Angular 2 that makes use of Box Platform's integration with Auth0.

box-auth0-angular1-skeleton-app-sample This sample demonstrates how to build a serverless web client application in Angular 1 that makes use of Box Platform's integration with Auth0.

box-auth0-swift-skeleton-app-sample This sample demonstrates how to build an iOS application using Swift that makes use of Box Platform's integration with Auth0.

box-aws-cognito-angular2-skeleton-app-sample This sample demonstrates how to build a serverless web client application in Angular 2 that makes use of Box Platform's integration with AWS Cognito.

Support

Need to contact us directly? You can post to the Box Developer Forum.

Copyright and License

Copyright 2016 Box, Inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

samples's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

samples's Issues

misalignment between code and doc

Hi,

The first issue is

For the AWS Cognito examples using lambda, it is said in doc to use the following env variable:
BOX_PRIVATE_KEY_PASSPHRASE = <YOUR_APP_PRIVATE_KEY_PASSPHRASE>

but the lambda code is using BOX_PRIVATE_KEY_PASSWORD (see https://github.com/box/samples/blob/cognito_integration/box-node-cognito-lambdas-sample/tokenExchange/box-manager.js#L16)

The second issue is with the angular2 application

Its mentioned to add a custom attribute called custom:box_appuser_id which will store the box id for the given account.

but the application is using box_appuser_token (see https://github.com/box/samples/blob/master/box-aws-cognito-angular2-skeleton-app-sample/src/app/config/box/box.config.ts#L10)

box-aspnet-mvc-skeleton-app BoxHelper throws exception

What is the correct format for the .pem file?

I'm working with Daryn Kelley on a project to implement JWT-based authentication in a .Net application. They referred me to the box-aspnet-mvc-skeleton-app example in this project. I have created a new Box app in my developer account and loaded up the information into the project's web.config and private_key.pem file to the best of my understanding; however, when the application runs it throws an exception while loading up the BoxConfig object into the BoxJWTAuth object, such as here:

image

I'm assuming this is because I'm just copy-pasting the contents of the JSON file the developer console downloads when clicking "Generate Public/Private Key Pair" here:

image

Is this not the correct way of generating the file? Is there some sort of undocumented process I missed here?

Thank you very much

Consider adding an example for firebase cloud functions

Hello, first of all great work on the node SDK.

I followed the box-node-lambda-sample tutorial and got it working. Then firebase released the new cloud functions, our app is hosted on firebase and uses the realtime database so it makes sense to use the cloud functions too.

It's pretty straight forward and I was able to get firebase functions working by following the readme on the node SDK.. But it may be nice to have some doc's for people looking for help getting started.

Link in Documentation not working

In the Box-swift skeleton app, in the documentation, the url of the iOs Application Configuration in step 2.3 is not working, it send to an Auth0 not found page.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.