Comments (2)
Hello @odidev,
This is a pretty old example from February 2018. The blog post you linked to suggests you go to a newer version at https://developer.okta.com/blog/2019/05/22/java-microservices-spring-boot-spring-cloud. Is there a particular reason you want to use this version?
from spring-boot-microservices-example.
I was able to get everything working today. I did have to use Java 8. I followed the instructions in the README and modified the following files to contain my OIDC app's information.
beer-catalog-service/src/main/resources/application.properties
client/src/app/shared/okta/okta.service.ts
edge-service/src/main/resources/application.properties
The one thing that tripped me up is I didn't have a roles
claim defined. The stack trace in my terminal helped me track down the issue. I added it on Okta.
![Screenshot 2023-05-17 at 10 34 40 AM](https://private-user-images.githubusercontent.com/17892/239019943-a0702e99-8071-4c2d-96eb-f2eabadcc2a2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyNDgzMjcsIm5iZiI6MTcyMzI0ODAyNywicGF0aCI6Ii8xNzg5Mi8yMzkwMTk5NDMtYTA3MDJlOTktODA3MS00YzJkLTk2ZWItZjJlYWJhZGNjMmEyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEwVDAwMDAyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFjNTNjYzRiN2E5MzY1MjhmNWRmNTZiYzZiN2Y4MDVkZDUwMDFhYzQ4ZDRiNTE4ZTdiODVlMTRhMGVjNzlhOTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.j5MNkrIwW5VPClZorDJfeKkDtZdAVrOyYz_91YcOlks)
Then, http://localhost:8081/home
works as expected.
![Screenshot 2023-05-17 at 10 34 19 AM](https://private-user-images.githubusercontent.com/17892/239020043-70c950b7-a5c4-4c8f-a61b-3fafee2308b6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyNDgzMjcsIm5iZiI6MTcyMzI0ODAyNywicGF0aCI6Ii8xNzg5Mi8yMzkwMjAwNDMtNzBjOTUwYjctYTVjNC00YzhmLWE2MWItM2ZhZmVlMjMwOGI2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEwVDAwMDAyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMwMmVlNjAyZmM2YjFjZjRkNjQ0NjU4OTBmODhlYmI4OTlkNjViZGI5M2M3MzM3MDg4ZjczMGZiYWViZjhiMWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.H2ZDyMIlgtr3wrCiWNOnRZZ9s3bRezevw44esBi8JxM)
I'll close this issue since I'm not able to reproduce it. Please re-open if you're still having issues.
from spring-boot-microservices-example.
Related Issues (10)
- No default constructor for entity HOT 3
- Edge service is not starting - BindException HOT 1
- Add instructions for adding groups as a claim to OAuth
- Unable to use this `oauth` branch HOT 2
- Could you please share the deploy.sh file for the windows box ? HOT 1
- Homepage Stuck at "Loading..." HOT 3
- how we can auto balance and orechestrade a real platform HOT 1
- OAUTH_ERROR: 'redirect_uri' parameter HOT 2
- springboot microservices gatewayservice routing issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot-microservices-example.