Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sp provision api feature #357

Open
wants to merge 65 commits into
base: sp-provision-api-feature
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
bfa9205
created sp-provision-service module
gayanch Jun 26, 2018
d777b72
initial commit: API implementation
gayanch Jun 28, 2018
2e1bb56
changed property file based config method to mobile-connect.xml method
gayanch Jun 28, 2018
6e88f43
created basic functionalties of service provision api
gayanch Jun 29, 2018
f61296c
[IDSDEV-945] Add Self Service Portal Code to master
Lakini Jul 2, 2018
581316c
[IDSDEV-945] Add angular component to Self Service portal feature
madushak Apr 27, 2017
1dcea92
IDSDEV-553 - Fixing error on npm Build Production
sahantelco May 5, 2017
7308cb8
adding anjular build files
sahantelco May 5, 2017
49987bb
Added cross origin filter
madushak May 5, 2017
5cfdb5e
Changed the ngfor
madushak May 5, 2017
2528aeb
Added login count API method
madushak May 8, 2017
9a4fb70
Added Pin reset swagger
madushak May 8, 2017
e51a74e
[IDSDEV-553] build anjular files
sahantelco May 5, 2017
55ce98f
[IDSDEV-559] Create PIN reset page with form validation
sahantelco May 9, 2017
dac1a53
[IDSDEV-500] activity widget modification
sahantelco May 9, 2017
215e150
Added PIN reset API method and get current LOA api - IDSDEV-557
madushak May 9, 2017
95491e9
PIN reset UI - IDSDEV-557
madushak May 15, 2017
b64bb1c
Added login summary chart and pin reset IDSDEV-557
madushak May 19, 2017
9bb78e7
Code cleanup IDSDEV-557
madushak May 22, 2017
d72aa01
Footer modification
sahantelco May 23, 2017
42f204e
Added profile upgrade flow - IDSDEV-557
madushak May 24, 2017
7004625
Rename README to README.md
madushak May 30, 2017
48cdc52
Update README.md
madushak May 30, 2017
c18fc79
[IDSDEV-945] Added build scripts and hashed pin reset
madushak May 30, 2017
2780cfb
Changed login history sort order - IDSDEV-557
madushak May 30, 2017
ff79163
[IDSDEV-564] Theme change accourding to mobileconnect color schema
sahantelco May 30, 2017
ced4a5b
Fixing Undefined param usage for common service call
sahantelco Jun 13, 2017
5437ca7
Fixing URL path(pin reset/signout) issue
sahantelco Jun 14, 2017
626e596
[IDSDEV-605] UI Improvements
sahantelco Jul 4, 2017
aa11d18
[IDSDEV-604] User can not log into self service portal after login ou…
sahantelco Jul 5, 2017
f09c440
[IDSDEV-619] Fix the issue in After changing the offset value of MIG …
Jul 11, 2017
2307d03
[IDSDEV-619] Fixed the issue : unable to log into self service Portal…
Jul 11, 2017
7266c4f
sp provision api feature
gayanch Jul 5, 2018
9091a05
[IDSDEV-971] rebase the master with mig-release-2.2.0-m3 to add Self …
Lakini Jul 5, 2018
3632c46
implemented service provider provision API
gayanch Jul 9, 2018
049b087
feature generation
gayanch Jul 10, 2018
8e6f587
[IDSDEV-984] Fix bugs in login history
Lakini Jul 10, 2018
18de31d
Retrieve MIG host URL from carbon
gayanch Jul 10, 2018
2c8528b
feature generation
gayanch Jul 10, 2018
6c78d57
PR review modifications
gayanch Jul 10, 2018
a63e610
PR review modifications - 2
gayanch Jul 10, 2018
5a1a1f0
changed stored procedures to handle operator name and scope values pr…
gayanch Jul 11, 2018
f28f2d6
created sp-provision-service module
gayanch Jun 26, 2018
f20f1db
initial commit: API implementation
gayanch Jun 28, 2018
2111664
changed property file based config method to mobile-connect.xml method
gayanch Jun 28, 2018
9cc47a0
created basic functionalties of service provision api
gayanch Jun 29, 2018
dc65d97
sp provision api feature
gayanch Jul 5, 2018
1b95a62
implemented service provider provision API
gayanch Jul 9, 2018
ce3f870
feature generation
gayanch Jul 10, 2018
aae9b28
Retrieve MIG host URL from carbon
gayanch Jul 10, 2018
6b90680
feature generation
gayanch Jul 10, 2018
012421e
PR review modifications
gayanch Jul 10, 2018
3f347c1
PR review modifications - 2
gayanch Jul 10, 2018
4e021b5
changed stored procedures to handle operator name and scope values pr…
gayanch Jul 11, 2018
fb33566
rebase with Lakini/selfServicePortal
gayanch Jul 11, 2018
0086b31
added error messages
gayanch Jul 11, 2018
ce1ef6a
changed log4j ConversionPattern for SPProvision API logs
gayanch Jul 12, 2018
920f233
Selfcareportal UI v1
gayanch Jul 24, 2018
96ca309
selfserviceportal endpoint changes
gayanch Jul 24, 2018
ae8d049
added some error messages
gayanch Jul 24, 2018
56d113b
removed react unused imports and added .gitignore entries for react f…
gayanch Jul 25, 2018
1fc8120
changed selfserviceportal web app path
gayanch Jul 25, 2018
1146231
fixed an issue in recent activities paging mechanism
gayanch Jul 25, 2018
76d204c
Removed debug console.log statements
gayanch Jul 25, 2018
3a9d099
UI improvements
gayanch Jul 26, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ target
*pom.xml.tag
*release.properties
features/com.wso2telco.ids.dashboard.ui.feature/src/main/resources/generated/dashboard.zip
components/self-service-portal/src/angular-source/node_modules
components/self-service-portal/src/main/react/build/
components/self-service-portal/src/main/react/node_modules/
58 changes: 58 additions & 0 deletions components/self-service-portal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Self Service Portal UI

## Introduction
The Self-care Portal differs from the other two functional areas. For Registration and Authentication the process is designed to guide the user from one step to another.
Whereas, for the Self-care Portal the process is designed to encourage the user to explore, by having screens in the flow that are interlinked

## Install tools

Download and install nodejs https://nodejs.org

Note: Make sure you have Node version >= 6.0 and NPM >= 3

## Build and Run Development Server
Run the Following Commands to build the source and start the development server

#### 1. Install NPM dependencies

```
cd angular-source
npm install
```

#### 2. Build and run the project on node development server (default on http://localhost:3000)

```
npm run start
```

## Build and generate the `selfservice.war`

### Method 1

#### 1. Build the angular-source project, clean existing content and copy compiled package to `self-service-portal/src/maim/webapp` by running following command

```
npm run build:prod
```

#### 2. Go to project parent folder (`self-service-portal`) and produce the war file

```
cd self-service-portal
mvn clean install
```


### Method 2

#### 1. Open pom.xml of `self-service-portal` project
#### 2. Edit execution plugin configuration `exec-npm-install` and `exec-npm-build` and set `skip` attribute to `false`

```
<skip>false</skip>
```


## Based on
NPM, Angular 2, Bootstrap 4, Webpack
173 changes: 173 additions & 0 deletions components/self-service-portal/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.wso2telco.ids</groupId>
<artifactId>component-ids</artifactId>
<version>2.4.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>self-service-portal</artifactId>
<packaging>war</packaging>

<name>Self Service Portal - Webapps</name>

<dependencies>
<dependency>
<groupId>org.json.wso2</groupId>
<artifactId>json</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.authenticator.stub</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity</groupId>
<artifactId>org.wso2.carbon.identity.mgt.stub</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity</groupId>
<artifactId>org.wso2.carbon.um.ws.api.stub</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.orbit.org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-codec.wso2</groupId>
<artifactId>commons-codec</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-server</artifactId>
<version>1.17.1</version>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-core</artifactId>
<version>1.17.1</version>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-servlet</artifactId>
<version>1.17.1</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.utils</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity</groupId>
<artifactId>org.wso2.carbon.identity.application.authentication.framework</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.wso2telco.core</groupId>
<artifactId>config-util</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.wso2telco.core</groupId>
<artifactId>dbutils</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>exec-npm-install</id>
<phase>generate-sources</phase>
<configuration>
<workingDirectory>${project.basedir}/src/main/react</workingDirectory>
<executable>npm</executable>
<arguments>
<argument>run</argument>
<argument>build</argument>
</arguments>
<skip>false</skip>
<!-- set false to build the angular app -->
</configuration>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
</plugin>
<!--<plugin>-->
<!--<groupId>org.codehaus.mojo</groupId>-->
<!--<artifactId>exec-maven-plugin</artifactId>-->
<!--<executions>-->
<!--<execution>-->
<!--<id>exec-npm-build</id>-->
<!--<phase>generate-sources</phase>-->
<!--<configuration>-->
<!--<workingDirectory>${project.basedir}/src/angular-source</workingDirectory>-->
<!--<executable>npm</executable>-->
<!--<arguments>-->
<!--<argument>run</argument>-->
<!--<argument>build:prod</argument>-->
<!--</arguments>-->
<!--<skip>false</skip>-->
<!--&lt;!&ndash; set false to build the angular app &ndash;&gt;-->
<!--</configuration>-->
<!--<goals>-->
<!--<goal>exec</goal>-->
<!--</goals>-->
<!--</execution>-->
<!--</executions>-->
<!--</plugin>-->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${maven-compiler-plugin.version}</source>
<target>${maven-compiler-plugin.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<!--<version>2.1.1</version>-->
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<webResources>
<resource>
<directory>${project.basedir}/src/main/react/build/</directory>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading