Skip to content

Commit 62a477c

Browse files
author
sanjeevchopra
committed
Initial code contribution from GE Digital https://git.io/vbHnC
Signed-off-by: Anubhav Saggi<anubhavi25> Signed-off-by: Irina Epshteyn <irinaepshteyn> Signed-off-by: Sebastian Torresbrown <sebastiantb> Signed-off-by: Sandeep Voolla Kumar <VoollaSandeepKumar> Signed-off-by: Ilya Lipkind <ilipkind> Signed-off-by: Vineet Banga <vbanga>
1 parent 6898e84 commit 62a477c

File tree

522 files changed

+52229
-203
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

522 files changed

+52229
-203
lines changed

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/build
2+
/bin
3+
/target
4+
.classpath
5+
.project
6+
.settings
7+
/test-output/
8+
.DS_Store
9+
.springBeans
10+
data
11+
.idea
12+
*.ipr
13+
*.iml
14+
.acs-service-copy.jar
15+
api/target/
16+
samples/spring-mvc-api/target/
17+
service/pom.xml.versionsBackup
18+
pom.xml.versionsBackup
19+
model/pom.xml.versionsBackup
20+
commons/pom.xml.versionsBackup
21+
**/surefire~
22+
**/gotty-client*
23+
.acs.*
24+
xmlstarlet*

LICENSE

+202-203
Large diffs are not rendered by default.

README.md

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## Access Control Service (ACS)
2+
3+
For more information about Access Control Services, please read the following documentation:
4+
https://www.predix.io/docs#IGyNp2eM
5+
6+
### LICENSE
7+
This project is licensed under Apache v2.
8+
9+
### How to build ACS and run unit tests
10+
To build ACS without support for hierarchical attributes and run unit tests
11+
12+
```
13+
mvn clean install [-P "public-titan"] [-s <maven_settings_file>]
14+
```
15+
Specify "public-titan" profile to build ACS with support for hierarchical attributes.
16+
17+
### How to run ACS locally
18+
To run the service locally without support for hierarchical attributes
19+
20+
```
21+
./service/start-acs-public.sh
22+
```
23+
To run the service locally with support for hierarchical attributes
24+
25+
```
26+
./service/start-acs-public-titan.sh
27+
```
28+
29+
The ACS service requires a UAA (User Account and Authentication: https://github.com/cloudfoundry/uaa) service to manage OAuth clients and users used in conjunction with ACS.
30+
When running ACS locally, by default the service is configured to trust the local UAA. You can modify the environment variable `ACS_DEFAULT_ISSUER_ID` and `UAA_CHECK_HEALTH_URL` to correspond to your existing UAA.
31+
32+
### How to run UAA locally
33+
34+
Clone the UAA repository from the following url
35+
36+
```
37+
git clone https://github.com/cloudfoundry/uaa.git
38+
cd uaa
39+
./gradlew assemble -x javadoc
40+
./gradlew run -x javadoc --info
41+
```
42+
43+
### How to run ACS integration tests
44+
45+
The script below starts UAA and ACS, runs the tests, then stops the ACS and UAA services.
46+
47+
```
48+
./run-integration-tests.sh [-t -s <maven_settings_file>]
49+
```
50+
51+
Specify -t option to run integration tests against ACS that supports hierarchical attributes.

acs-integration-tests/.checkstyle

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
4+
<fileset name="all" enabled="true" check-config-name="Guardian's Checkstyle" local="false">
5+
<file-match-pattern match-pattern="." include-pattern="true"/>
6+
</fileset>
7+
</fileset-config>

acs-integration-tests/.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/build
2+
/bin
3+
/target
4+
.classpath
5+
.project
6+
.settings
7+
/test-output/
8+
.DS_Store
9+
.springBeans
10+
.idea
11+
*.ipr
12+
*.iml
13+
/target/
14+
/failsafe-reports*/

0 commit comments

Comments
 (0)