Giter Club home page Giter Club logo

spa-demo-vue's Introduction

Vue Quick Integration Authing Demo

License

English | 简体中文

Introduction

You can use Authing to quickly integrate authentication capabilities for new or existing Vue applications. This demo will show you how to use the Authing Browser SDK to add authentication capabilities to your Vue application.

Documentation

Authing Console Configuration

In the Authing Console's self-built application, modify your application settings:

  • Authentication Configuration: configure the Login Callback URL to https://localhost:3000
  • Authorization Configuration: Authorization Flow Select authorization_code and refresh_token
  • Authorization Configuration: Return Type select code

Fill in your app configuration

Go to the demo directory corresponding to the version of Vue you are using, and in the /.env configuration file, fill in your application configuration:

# App ID
VUE_APP_SDK_APPID = App ID

# App's authentication address
VUE_APP_SDK_DOMAIN = authentication address

# Login Callback URL
VUE_APP_SDK_REDIRECT_URI = Login Callback URL

# The permissions requested by the app to Authing, separated by spaces, 
# the default is 'openid profile' Permissions successfully obtained will 
# appear in the scope field of the Access Token
VUE_APP_SDK_SCOPE = openid profile order:read

# API for verifying that the Access Token has permission to access.
# For example: http://localhost:5000/api/protected
VUE_APP_RESOURCE_API = resource api

Install

$ yarn install

Run

$ yarn start

Contribution

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push -u origin my-new-feature)
  • Create new Pull Request

License

MIT

Copyright (c) 2019-present, Authing

spa-demo-vue's People

Contributors

erniu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.