
GregH.10697 (Customer) asked a question.
I've been successfully executing tutorial until I got to "Create an OIDC App in Okta" section. Okta must have changed its process since this was written because now the words don't match the experience. Specifically, he says to put in the clientSecret in application.yml. There is no client secret. Now there's something called PKCE. I don't have time or patience to figure out documentation. That's why I use tutorials. Could someone please update this one or point me to a new one?

Hi,
I've been working with the same tutorial, but it's been working for me. Here are the properties - note that I changed from the yml to applications.properties:
spring.profiles.active=@spring.profiles.active@
spring.security.oauth2.client.registration.okta.client-id=xxxxxxxx
spring.security.oauth2.client.registration.okta.client-secret=xxxxxx
spring.security.oauth2.client.registration.okta.scope=openid, email, profile
spring.security.oauth2.client.provider.okta.issuer-uri=https://dev-xxxxx.okta.com/oauth2/default
Thanks Mark. Where do I find the "client-secret"? I'm logged into the Okta dashboard and can't find it anywhere.
Hi Greg,
If you haven't found yet, it's under the application tab. Click on the link with the name of your app (not the gear). Then click on the "general" tab (it defaults to "Assignments" for some reason. Scroll to the bottom of the General page, and you'll see them.
Hi Mark,
Unfortunately, the Client Secret does not exist there for me. Instead I see a "Client authenication" field. The value for that field is a greyed out (unselectable) radio button entitled "Use PKCE (for public clients). The text underneath it states "Uses Proof Key for Code Exchange (PKCE) instead of a client secret. A one-time key is generated by the client and sent with each request. Instead of proving the identity of a client, this ensures that only the client which requested the token can redeem it."
I'm having the same issue here as well where client secret does not exist for me because I am using Authorization Code Flow w/ PKCE for an SPA
I ended up getting the application to work by excluding the client-secret in the applicaton.properties/yml file entirely.