Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/autodesk-forge/oauth-walkthrough-2.legged.auth
2-Legged Authentication walkthrough: Learn how to use two-legged authentication
https://github.com/autodesk-forge/oauth-walkthrough-2.legged.auth
Last synced: about 6 hours ago
JSON representation
2-Legged Authentication walkthrough: Learn how to use two-legged authentication
- Host: GitHub
- URL: https://github.com/autodesk-forge/oauth-walkthrough-2.legged.auth
- Owner: Autodesk-Forge
- License: mit
- Created: 2018-11-05T15:09:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-05T16:22:30.000Z (about 6 years ago)
- Last Synced: 2024-04-09T21:50:13.833Z (7 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 3
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Two-Legged Authentication sample
[![Node.js](https://img.shields.io/badge/Node.js-8.11.1-blue.svg)](https://nodejs.org/)
[![npm](https://img.shields.io/badge/npm-6.1.0-blue.svg)](https://www.npmjs.com/)
![Platforms](https://img.shields.io/badge/platform-windows%20%7C%20osx%20%7C%20linux-lightgray.svg)
[![License](http://img.shields.io/:license-mit-blue.svg)](http://opensource.org/licenses/MIT)[![oAuth2](https://img.shields.io/badge/oAuth2-v1-green.svg)](http://developer.autodesk.com/)
# Description
This sample is part of the [2-Legged Authentication Walkthrough](https://forge.autodesk.com/developer/learn/twolegged-auth).This sample illustrates how to use two-legged authentication.
## Thumbnail
![thumbnail](/thumbnail.png)# Setup
## Prerequisites
1. A Forge account: [Getting Started with Forge](https://forge.autodesk.com/developer/getting-started)
2. A text editor of your choice. (For example Brackets or Visual Studio Code are good choices.)
3. A basic knowledge of :
- HTML and CSS
- JavaScript ES6
- Command-line programs
- Node.js Command Line (for Windows users)
- Terminal (for Mac/Linux/Unix users)## Running locally
Install [NodeJS](https://nodejs.org/) (version 8 or newer).
Clone this project or download it. It's recommended to install [GitHub desktop](https://desktop.github.com/).
To run it, install the required packages, set the enviroment variables with your client ID & secret and finally start it. Via command line, navigate to the folder where this repository was cloned and use the following:
Mac OSX/Linux (Terminal)
```bash
npm install
export FORGE_CLIENT_ID=<>
export FORGE_CLIENT_SECRET=<>
npm start
```Windows (use Node.js command line from Start menu)
```bash
npm install
set FORGE_CLIENT_ID=<>
set FORGE_CLIENT_SECRET=<>
npm start
```Open a browser and navigate to http://localhost:3000.
Click on the `Authorize me` link.
# License
This sample is licensed under the terms of the [MIT License](http://opensource.org/licenses/MIT). Please see the [LICENSE](LICENSE) file for full details.# Support
[email protected]