Giter VIP home page Giter VIP logo

cloudentitywebauthsamples's Introduction

Cloudentity Web Auth Samples

This repository contains examples for using the Cloudentity Web Auth library used to facilitate authentication with Cloudentity. Setting up authentication for your application couldn’t been easier and only requires these simple steps below. Try it out using the Cloudentity demo. After starting your trial, create your JS Single Page App in the Cloudentity developer self service and follow the steps there to see how easy it is.

Usage

To play with each example project:

  1. Go to it's directory and install all dependencies:

    npm install
  2. Update settings.js file with your Cloudentity domain and client id:

     var CLOUDENTITY_SETTINGS = {
       domain: 'your-domain',       // e.g. 'example.demo.cloudentity.com'
       tenantId: 'your-tenant-id',
       authorizationServerId: 'your-authorization-server-id',
       clientId: 'your-client-id',
       redirectUri: 'http://localhost:8000',
       scopes: ['profile', 'email', 'openid', 'revoke_tokens'] // 'revoke_tokens' scope must be present for 'logout' action to revoke token! Without it, token will only be deleted from browser's local storage.
     };
  3. Make sure you have http://localhost:8000 added to your Redirect URLs in Application Settings.

  4. Start example server:

    npm start
  5. Open following URL in your browser:

    http://localhost:8000 
    

cloudentitywebauthsamples's People

Contributors

dependabot[bot] avatar kornzysiek avatar maschigokae avatar mateuszpohl avatar yaromin avatar

Watchers

 avatar

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.