Skip to content

Commit fde2c5e

Browse files
committed
Update config example
1 parent 52aa85d commit fde2c5e

1 file changed

Lines changed: 20 additions & 7 deletions

File tree

README.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,34 @@ Log in to your Okta Developer account (or [sign up](https://developer.okta.com/s
5151

5252
#### Server Configuration
5353

54-
Set the `issuer` and copy the `clientId` into `src/main/resources/application.yml`.
54+
Set the `issuer` and copy the `clientId` and `clientSecret` into `src/main/resources/application.yml`.
5555

5656
**NOTE:** The value of `{yourOktaDomain}` should be something like `dev-123456.oktapreview.com`. Make sure you don't include `-admin` in the value!
5757

58-
```properties
59-
okta.oauth2.issuer=https://{yourOktaDomain}/oauth2/default
60-
okta.oauth2.clientId={clientId}
58+
```yaml
59+
spring:
60+
profiles:
61+
active: @spring.profiles.active@
62+
security:
63+
oauth2:
64+
client:
65+
registration:
66+
okta:
67+
client-id: {clientId}
68+
client-secret: {clientSecret}
69+
scope: openid email profile
70+
provider:
71+
okta:
72+
issuer-uri: https://{yourOktaDomain}/oauth2/default
6173
```
6274
6375
## Links
6476
65-
This example uses the following libraries provided by Okta:
77+
This example uses the following open source libraries:
6678
67-
* [Okta Spring Boot Starter](https://github.com/okta/okta-spring-boot)
68-
* [Okta React SDK](https://github.com/okta/okta-oidc-js/tree/master/packages/okta-react)
79+
* [React](https://reactjs.org/)
80+
* [Spring Boot](https://spring.io/projects/spring-boot)
81+
* [Spring Security](https://spring.io/projects/spring-security)
6982
7083
## Help
7184

0 commit comments

Comments
 (0)