<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D50Z00008G7VfvSAFOkta Classic EngineIntegrationsAnswered2024-04-15T11:17:17.000Z2018-06-24T02:02:42.000Z2018-06-24T02:02:42.000Z
Failed to load property source from location 'file:./application.yml'
I am trying to follow the example from Get Started with Spring Boot, OAuth 2.0, and Okta at https://developer.okta.com/blog/2017/03/21/spring-boot-oauth#create-an-openid-connect-app-in-okta

But, I am getting the following error when trying to run the spring run helloOAuth.groovy

20:53:52.247 [runner-0] ERROR org.springframework.boot.SpringApplication - Application run failed

java.lang.IllegalStateException: Failed to load property source from location 'file:./application.yml'

 

Any idea what I'm doing wrong?

I have created the application.yml as follows:

security:

  oauth2:

    client:

      clientId:0oafk36pcpb0pQeLY0h7

      clientSecret:x3fxmAKhtGH4OtCNMHWGpUJxibpuKrAdoU-DeeSK

      accessTokenUri: https://dev-865953-admin.oktapreview.com/oauth2/default/v1/token

      userAuthorizationUri: https://dev-865953-admin.oktapreview.com/oauth2/default/v1/authorize

      clientAuthenticationScheme: form

      scope: openid profile email

    resource:

      userInfoUri: https://dev-865953-admin.oktapreview.com/oauth2/default/v1/userinfo

 


  • Hello,

     

    Unfortunately we cannot troubleshoot this without seeing the complete project, but from what I see, you don't have a port added inside, you can add something like:

     server:

    port: 8080

    It's not necessary to use this specific port.

    Best way we can help you with this is to open a case with us so we can go further with the inquiry.

     

    Best Regards,

     

    Tomas Popescu.
    Expand Post
This question is closed.
Loading
Failed to load property source from location 'file:./application.yml'