Build a CRUD Application with Java and MongoDB
Learn how to use Java and MongoDB to create a REST API. Then secure with Spring Security and OAuth 2.0.
Build a CRUD Application with Java and MongoDB
Learn how to use Java and MongoDB to create a REST API. Then secure with Spring Security and OAuth 2.0.
Priyank Acharya
Pleasant post, Thank you for sharing profitable data. I appreciated perusing this post. The entire blog is extremely pleasant discovered some well done. Thanks for sharing…Also visit my page.
Great post, very concise and clear.
I’m a few years late to the party and I had to make a few tweaks to get this to work. Just posting it here in case it might help someone else.
In application.properties I had to add the mongodb embedded version
spring.mongodb.embedded.version=2.6.10
When selecting the Implicit (hybrid) as a grant type option I had to select ‘Allow access token’ underneath it. Selecting ‘Allow ID token’ gave me an error.
Thanks for the tips, @prothery! I’m guessing you used a newer version of Spring Boot than 2.4.5? If you use the version the tutorial specifies, you shouldn’t need to use the embedded.version
property.
Regarding implicit flow: this tutorial uses authorization code flow with PKCE, which is more secure than implicit flow. See the following blog post for more information on this topic:
Hi Matt, sorry I missed this email.
Thanks for the blog post I will take a look.
You won’t recognize my name but I have been going DJUG for several years. I’m one of the few English guys and talked to you a few times in the ale house (many moons ago is seems!). I’ve asked you about your bus a few times, we just bought a custom Dodge promaster camper van.
Anyhow, I am working my way through okta/heroku posts and all through your info angular mini-book. Great book, thanks for the clear explanations.
Cheers
Paul
Hey Paul,
It’s great to hear from a fellow Denver Java community member! I’m glad you’ve found my posts and the Angular Mini-Book useful.
Please let me know if you have any additional questions.