Giter Club home page Giter Club logo

laravel-sample-app's Introduction

Laravel Sample To Use Zid APIs

OAuth.

In Zid, we use authorization code grant, The authorization code grant type is used to obtain both access tokens and refresh tokens and is optimized for confidential clients. Since this is a redirection-based flow, the client must be capable of interacting with the resource owner's user-agent (typically a web browser) and capable of receiving incoming requests (via redirection) from the authorization server.

  • Generate Client ID and Client Secret

    The first step is to retrieve an API id and API secret key, which you get when you create an app. These API credentials identify your app during the authorization process.

    1. Log in to your Partner Dashboard.
    2. Click Apps.
    3. Choose the type of app that you want to create.
    4. Click Create app.
    5. Enter your application basic details.
    6. Click Create App.
    7. Scroll to API Keys to view your API key and API secret key.
    8. Store these keys in your .env file as ZID_CLIENT_ID and ZID_CLIENT_SECRET
  • Update Your application URLs

    In the third step of the application creation, Zid will ask your for application, Redirect, and Callback URLs. In this sample project the redirect URL will be {{your_base_URL}}/auth/zid, and the callback URL will be {{your_base_URL}}/auth/zid/callback

    • The application URL: should be the base URL for your application, where zid will redirect the users to when they want to use your application
    • Redirect URL: when the users clicks on install on my store button, Zid will redirect the user to this URL.
    • Callback URL: after the user confirms the scopes that your application is asking, he will be redirected to this URL, with the OAuth code.

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.