2017 © Pedro Peláez
 

library crowd-rest-bundle

This bundle provides a simple API for Atlassian Crowd's REST API.

image

seiffert/crowd-rest-bundle

This bundle provides a simple API for Atlassian Crowd's REST API.

  • Monday, July 28, 2014
  • by PSeiffert
  • Repository
  • 2 Watchers
  • 1 Stars
  • 38 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Crowd Rest Bundle

This bundle provides a simple API for Atlassian Crowd's REST API., (*1)

Build Status, (*2)

Installation

Require the package via composer:, (*3)

composer.json:, (*4)

    "require": {
        ...
        "seiffert/crowd-rest-bundle": "dev-master",
        ...
    }

Activate the bundle in your AppKernel:, (*5)

app/AppKernel.php:, (*6)

    public function registerBundles()
    {
        $bundles = array(
            ...
            new Seiffert\CrowdRestBundle\SeiffertCrowdRestBundle(),
            ...
        );
        ...
    }

Configuration

To connect to your organization's Crowd instance, you have to add some entries to your project configuration (e.g. in app/config/config.yml):, (*7)

seiffert_crowd_rest:
    url: https://<crowd-url>/crowd/rest/usermanagement/1
    application:
        name: <application-name>
        password: <application-password>
  • crowd-url: Your Crowd instance's Url/Hostname.
  • application-name: The name of your application registered in Crowd.
  • application-password: The password of your application registered in Crowd.

Usage

After installing and configuring the bundle, you can use the Crowd API by injecting the service seiffert.crowd into each client object. The injected object is of type Seiffert\CrowdRestBundle\Crowd and currently provides the following methods:, (*8)

  • getUser($username): Returns an instance of Seiffert\CrowdRestBundle\Crowd\UserInterface if the username matches a user record in Crowd. If not, a UserNotFoundException is being thrown.
  • isAuthenticationValid($username, $password): Returns true if the username and password match a user record in Crowd, false otherwise.

The Versions

28/07 2014

dev-master

9999999-dev

This bundle provides a simple API for Atlassian Crowd's REST API.

  Sources   Download

CC-BY-SA-3.0

The Requires

 

The Development Requires