Skip to content

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth Applications

Introduction

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

Screenshots

html-manage-applications

html-manage-applications-new-app-1

html-manage-applications-new-app-2

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 need to configure the application to point to your OAuth server. This can be done by copying config/config.js.default to config/config.js and modifying the config.js file to suit your situation.

This is the default configuration:

var apiClientId       = 'html-manage-applications';
var authorizeEndpoint = 'http://localhost/php-oauth/authorize.php';
var tokenInfoEndpoint = 'http://localhost/php-oauth/tokeninfo.php';
var apiEndpoint       = 'http://localhost/php-oauth/api.php';

For example, for your situation it may need to be this:

var apiClientId       = 'html-manage-applications';
var authorizeEndpoint = 'https://www.example.org/php-oauth/authorize.php';
var tokenInfoEndpoint = 'https://www.example.org/php-oauth/tokeninfo.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:

Identifierhtml-manage-applications
NameManage OAuth Application Registrations
DescriptionApplication for administrators to manage OAuth application registrations.
ProfileUser-agent-based Application
SecretNONE
Redirect URIhttps://www.example.org/html-manage-applications/index.html

That should be all!

About

OAuth Authorization Server "user-agent-based application" management interface

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors