The sample to show how a SP is working with CIP.
The SP might be
- Standalone
- SP Managed
Menu | Feature | Description |
---|---|---|
Welcome | Show Components Usage | |
CIP | Current User Profile | Data from CIP service |
SP | Machine List | Data from SP service |
First , please ask for a demo user and create the OAuth2 Application for the sample in CIP. For example :
Key | Value |
---|---|
Client Id | spample-standalone |
Client Secret | |
OAuth2 Grant Type | Implicit |
Default Scope for Implicit | default-spample-standalone-scope |
Redirect UI | http:127.0.0.1:4200 |
backend/standalone/src/main/resources/application-development.yml
spase.client:
gatewayHost: get_address_from_CIP_provider
frontend/src/proxy.conf.json
"/gateway/*": {
"target": "get_address_from_CIP_provider",
"secure": true,
"logLevel": "debug",
"changeOrigin": true
}
frontend/src/environments/environment.ts
CIP_HOST: "get_address_from_CIP_provider",
CLIENT_ID: "spample-standalone",
SCOPE: "default-spample-standalone-scope",
- redis & mongodb
cd env
docker-compose up -d
- backend
cd backend/standalone
gradle clean bootRun -PjvmArgs="-Dspring.profiles.active=development"
- frontend
cd frontend
npm install
npm start
- Open Chrome browser, visit the url http://127.0.0.1:4200 , it will jump to CIP host to do SSO login.
- Complete SSO Login at CIP host , and it will redirect back to http://127.0.0.1:4200
- Now you can take the show cases