Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Spring Oauth not authenticating

 
Rancher
Posts: 527
6
IntelliJ IDE Spring Fedora
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I got basic authentication to work with  userdetails, and userdetailsservice,
but my ultimate goal was to set up oauth2.
When I try to access my rest api with post man I get this response.
]

My server debug:



It looks like it's trying to do basic authentication for the client id that I put in the request.
I know the PasswordEncoder problem has to do with a wrong password format
but while I was debugging it never used my userdetailsservice so it wasn't even looking at the database.

my configs:




The client name is my-client-with-secret, so the matching secret is "secret."
I ran a spring demo app with a similar request and it worked fine with even less configuration.
What could be the problem?

Thanks!
 
Always look on the bright side of life. At least this ad is really tiny:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic