-
-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
500 additions
and
539 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.