Skip to content

haiyun-document/html-manage-authorizations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth Authorizations

Introduction

This application makes it possible to manage authorized applications with the php-oauth service through its API.

Screenshots

html-manage-authorizations

Installation

This application depends on the following components:

  • jQuery
  • JSrender (JavaScript Template Rendering for jQuery)
  • JSO (JavaScript OAuth 2 client)
  • Bootstrap CSS

It can easily be installed by running the following script:

$ sh docs/install_dependencies.sh

This will download the latest version of those components and everything will immediately work.

Configuration

You may need to modify both authorizeEndpoint and apiEndpoint in js/manage.js when your OAuth server is not configured at http://localhost/php-oauth. So you need to change the following lines:

var authorizeEndpoint = 'http://localhost/php-oauth/authorize.php';
var apiEndpoint = 'http://localhost/php-oauth/api.php';

To for example:

var authorizeEndpoint = 'https://www.example.org/php-oauth/authorize.php';
var apiEndpoint = 'https://www.example.org/php-oauth/api.php';

Client Registration

Also, make sure that this client is registered in your OAuth server. The following information will be relevant:

Identifierauthorization_manager
NameManage Authorizations
DescriptionThis application can be used by end users to view and revoke application permissions.
ProfileUser-agent-based Application
SecretNONE
Redirect URIhttps://www.example.org/html-manage-authorizations/index.html

That should be all!

About

Use the php-oauth API to manage approved applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published