Coder Social home page Coder Social logo

wix-auth-example's Introduction

Some examples of how to add custom, third-party authentication to your Wix website with the Velo JavaScript IDE.

Basic example

As the heading suggests, this is the simplest way to do add a third-party integration; it involves importing backend code into your frontend code, which is perhaps not the most secure way to do this.

It can be improved in a number of ways, including by the use of the Wix Secrets Manager to store the Client ID and Client Secret.

Wix Router example

This is the suggested way to add third-party authenetication to your website, but Unfortunately, at the time of writing there is a bug that is preventing it from working. See my forum post about it.

It's a shame because this is a much more secure method for adding this kind of integration. This is because everything is handled in the backend, and at no point do you have to import backend code into your frontend code. I would highly recommend trying this method before resorting to the basic one.

It uses the Wix Router API module (docs) to accept requests, retrieve the access token, and forward the user to the login page with a Wix session token that can be used to log them in.

Misc docs

Flows and APIs used:

wix-auth-example's People

Contributors

shaffan avatar

Stargazers

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