Skip to content

Project that will perform security functions for the Piazza system.

License

Notifications You must be signed in to change notification settings

venicegeo/pz-idam

Repository files navigation

pz-idam

The Piazza Core pz-idam project is an internal component that provides REST endpoints for handling Authentication and Authorization. This is done by brokering the Authentication (AuthN) functionality to an external service (in this case, GEOAxIS); and using an internal series of interfaces for providing Authorization (AuthZ). This project is used by the Gateway in order to generate API Keys and provide full AuthN/AuthZ capabilities.


Requirements

Before building and/or running the pz-search-query service, please ensure that the following components are available and/or installed, as necessary:

Ensure that the nexus url environment variable ARTIFACT_STORAGE_URL is set:

$ export ARTIFACT_STORAGE_URL={Artifact Storage URL}

For additional details on prerequisites, please refer to the Piazza Developer's Guide Core Overview or Piazza IDAM sections. Also refer to the prerequisites for using Piazza section for additional details.


Setup, Configuring, & Running

Setup

Create the directory the repository must live in, and clone the git repository:

$ mkdir -p {PROJECT_DIR}/src/github.com/venicegeo
$ cd {PROJECT_DIR}/src/github.com/venicegeo
$ git clone [email protected]:venicegeo/pz-idam.git
$ cd pz-idam

Note: In the above commands, replace {PROJECT_DIR} with the local directory path for where the project source is to be installed.

Configuring

As noted in the Requirements section, to build and run this project, RabbitMQ and PostgreSQL are required. The src/main/resources/application.properties file controls URL information for connection configurations.

Running

pz-idam uses Spring Profiles to invoke authentication models based on the required identity and access management approach. By default, pz-idam runs with disable-authn Spring profile.

To run the pz-idam locally, run the following command:

$ mvn spring-boot:run -Drun.profiles=disable-authn

When idam has initialized successfully, the following message will be displayed:

2017-05-31 07:02:27.934 INFO 5104 --- [ main] org.venice.piazza.idam.Application : Started Application in 4.671 seconds (JVM running for 7.033)

By default Tomcat server listens on port 443. To change port and other properties, update the application.properties file located in the src/main/resources/ directory.

Running Unit Tests

To run the Piazza IDAM unit tests from the main directory, run the following command:

$ mvn test

About

Project that will perform security functions for the Piazza system.

Resources

License

Stars

Watchers

Forks

Packages

No packages published