Skip to content

Commit b2a6bd6

Browse files
committed
Update READMEs and endpoints
1 parent c3f78ef commit b2a6bd6

5 files changed

Lines changed: 48 additions & 21 deletions

File tree

pingone-angular-openidconnect-sample/README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,21 @@ cd pingone-customers-sample-angular/pingone-angular-openidconnect-sample
1212
npm install
1313
cd ../pingone-angular-sdk
1414
npm link
15+
npm install
1516
cd ../pingone-angular-openidconnect-sample
1617
npm link pingone-angular-sdk
1718
```
1819

19-
3. Configure your Application Settings in `/src/app/app.component.ts`
20+
3. Create `Single Page App` with:
21+
- `Token` and `ID Token` response types
22+
- `Implicit` grant type
23+
- `None` token authentication method
24+
- `http://localhost:4200` redirect URI
25+
- `http://localhost:4200` signoff URL
26+
27+
4. Enable applications in the PingOne admin console.
28+
29+
5. Configure your Application Settings in `/src/app/app.component.ts`
2030

2131
```js
2232
this.authClient = new AuthOIDC(
@@ -31,6 +41,6 @@ npm link pingone-angular-sdk
3141
);
3242
```
3343

34-
4. Run Application `npm start`
44+
6. Run Application `npm start`
3545

36-
5. Open `http://localhost:4200`
46+
7. Open `http://localhost:4200`

pingone-angular-openidconnect-sample/src/app/app.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export class AppComponent implements OnInit {
1919
client_id: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
2020
redirect_uri: 'http://localhost:4200',
2121
post_logout_redirect_uri: 'http://localhost:4200',
22-
api_uri: 'https://api-staging.pingone.com',
23-
auth_uri: 'https://auth-staging.pingone.com'
22+
api_uri: 'https://api.pingone.com',
23+
auth_uri: 'https://auth.pingone.com'
2424
}
2525
);
2626
}

pingone-angular-registration/.env

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
environmentID=PINGONE_ENV_ID
2-
clientID=PINGONE_CLIENT_ID
3-
clientSecret=PINGONE__CLIENT_SECRET
4-
API_URI=PINGONE_API_URI
5-
AUTH_URI=PINGONE_AUTH_URI
2+
clientID=PINGONE_CLIENT_ID_WORKER_APP
3+
clientSecret=PINGONE_CLIENT_SECRET_WORKER_APP
4+
API_URI=https://api.pingone.com
5+
AUTH_URI=https://auth.pingone.com

pingone-angular-registration/README.md

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,25 @@ This sample demonstrates how to:
1010
2. Link not published package
1111

1212
```
13-
cd pingone-angular-sdk
13+
cd pingone-customers-sample-angular/pingone-angular-registration
14+
npm install
15+
cd ../pingone-angular-sdk
1416
npm link
17+
npm install
1518
cd ../pingone-angular-registration
1619
npm link pingone-angular-sdk
17-
npm install
1820
```
1921

20-
3. Configure your Application Settings in `/src/app/pingone-api.service.ts`
22+
3. Create `Single Page App` with:
23+
- `Token` and `ID Token` response types
24+
- `Implicit` grant type
25+
- `None` token authentication method
26+
- `http://localhost:4200` redirect URI
27+
- `http://localhost:4200` signoff URL
28+
29+
4. Enable applications in the PingOne admin console.
30+
31+
5. Configure your Application Settings in `/src/app/pingone-api.service.ts`
2132

2233
```js
2334
this.pingApiClient = new ApiClient({
@@ -28,16 +39,22 @@ npm install
2839
});
2940
```
3041

31-
4. Add environment-specific variables in .env file
42+
6. Create `Worker` application with:
43+
- `Client Credentials` grant type
44+
- `Client Secret Post` token authentication method
45+
46+
7. Enable applications in the PingOne admin console.
47+
48+
8. Add environment-specific variables in .env file
3249

3350
```properties
3451
environmentID=PINGONE_ENV_ID
35-
clientID=PINGONE_CLIENT_ID
36-
clientSecret=PINGONE__CLIENT_SECRET
37-
API_URI=PINGONE_API_URI
38-
AUTH_URI=PINGONE_AUTH_URI
52+
clientID=PINGONE_CLIENT_ID_WORKER_APP
53+
clientSecret=PINGONE_CLIENT_SECRET_WORKER_APP
54+
API_URI=https://api.pingone.com
55+
AUTH_URI=https://api.pingone.com
3956
```
4057

41-
5. Run Application `npm start` and `npm run server`
58+
9. Run Application `npm start` and `npm run server`
4259

43-
6. Open `http://localhost:4200`
60+
10. Open `http://localhost:4200`

pingone-angular-registration/src/app/pingone-api.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export class PingApiService {
1313
this.pingApiClient = new ApiClient({
1414
environmentID: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
1515
clientID: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
16-
API_URI: 'https://api-staging.pingone.com',
17-
AUTH_URI: 'https://auth-staging.pingone.com'
16+
API_URI: 'https://api.pingone.com',
17+
AUTH_URI: 'https://auth.pingone.com'
1818
});
1919
}
2020

0 commit comments

Comments
 (0)