GithubHelp home page GithubHelp logo

intei-cloud / fusio-apps-developer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apioo/fusio-apps-developer

0.0 0.0 0.0 3.05 MB

Fusio AngularJS consumer implementation

License: MIT License

JavaScript 46.06% HTML 46.58% CSS 7.35%

fusio-apps-developer's Introduction

Fusio-Consumer

About

This is a sample Fusio consumer application which provides a basic account page to grant apps access to your account and to manage basic account data and app grants/credentials. More information about Fusio at https://fusio-project.org

Configuration

The app must know the API endpoint of Fusio. If not provided it tries to guess the correct endpoint url. If this does not work you can set the correct url at the /index.html file i.e.:

var fusioUrl = 'http://api.acme/';

At the /auth endpoint the user can authorize new apps. The OAuth2 specification states that the Redirection Endpoint URL must not contain a fragment component. Because of that we need to configure the Html5Mode so that we can use clean urls i.e.: /auth?response_type=code&client_id=afd389ff-3a3f-45d9-8ccc-c6574380f3da&scope=authorization,consumer

To correctly configure the html 5 mode you have to set a correct base tag in the /index.html file. Also you have to configure the webserver so that all requests are redirected to the index.html. I.e. for Apache you could use the following htaccess directives:

DirectoryIndex index.html
FallbackResource /consumer/index.html

Docs

The docs/ folder contains example content which should help your users to get started with the API. You need to adjust the content accodring to your use case. It is also easy possible to extend the documentation menu with new entries, therefor you only need to extend the setDocumentationMenu Method call at the index.html with new entries.

fusioProvider.setDocumentationMenu({
    'Overview': {
        'Getting started': 'bootstrap',
        'API': 'api',
        'Authorization': 'authorization',
        'Support': 'support'
    }
});

The app will then try to load the fitting html files from the docs/ folder.

fusio-apps-developer's People

Contributors

chriskapp avatar dependabot[bot] 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.