Skip to content

Commit

Permalink
add new consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jul 3, 2016
1 parent 7ff43a9 commit 409c30e
Show file tree
Hide file tree
Showing 7 changed files with 500 additions and 539 deletions.
12 changes: 7 additions & 5 deletions public/consumer/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

# Consumer
# Fusio-Consumer

This is a sample Fusio consumer application which shows howto handle
authorization and how to use the API to list available applications and grants
to the user/developer. Note this is only a sample normally you would embed this
into your application.
## 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. Note this is only a sample normally you would embed this
into your application. More informations about Fusio at http://fusio-project.org
80 changes: 0 additions & 80 deletions public/consumer/css/default.css

This file was deleted.

19 changes: 19 additions & 0 deletions public/consumer/fusio.min.css

Large diffs are not rendered by default.

409 changes: 409 additions & 0 deletions public/consumer/fusio.min.js

Large diffs are not rendered by default.

150 changes: 0 additions & 150 deletions public/consumer/index.htm

This file was deleted.

65 changes: 65 additions & 0 deletions public/consumer/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<!--[if lt IE 7]> <html lang="en" ng-app="fusioApp" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html lang="en" ng-app="fusioApp" class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html lang="en" ng-app="fusioApp" class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en" ng-app="fusioApp" class="no-js"> <!--<![endif]-->
<html ng-app="fusioApp">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fusio-Consumer</title>
<link href="fusio.min.css" rel="stylesheet" media="screen">
<script src="fusio.min.js"></script>
<script type="text/javascript">
/**
* Url to the fusio API endpoint. Change this to the fitting url to the
* backend API. If not provided Fusio will try to guess the correct url
* I.e.: http://127.0.0.1/projects/fusio/public/index.php/
*/
var fusio_url = 'http://127.0.0.1/projects/fusio/public/index.php/';

/**
* Optional you can configure additional login provider which can be used
* by a user. Also you need to save the app secret in the Fusio backend
* configuration
*/
fusioApp.config(function($authProvider) {
$authProvider.baseUrl = fusio_url;
$authProvider.loginUrl = 'consumer/login';
$authProvider.httpInterceptor = function() { return false; };

$authProvider.facebook({
url: 'consumer/provider/facebook',
clientId: '' // Facebook App ID
});

$authProvider.google({
url: 'consumer/provider/google',
clientId: '' // Google Client ID
});

$authProvider.github({
url: 'consumer/provider/github',
clientId: '' // GitHub Client ID
});
});

/**
* Google captcha site key for registration
*/
fusioApp.config(['noCAPTCHAProvider', function(noCaptchaProvider) {
noCaptchaProvider.setSiteKey('');
}]);
</script>
</head>
<body>

<header class="container-fluid fusio-header">
<span><a href="http://fusio-project.org">Fusio-Consumer</a> <span>({{ version }})</span></span>
</header>

<div ng-view></div>

</body>
</html>

0 comments on commit 409c30e

Please sign in to comment.