enr1c091 / microservices-oauth Goto Github PK
View Code? Open in Web Editor NEWSample project explaining how to build Dockerized Microservices using Netflix OSS + Spring OAuth/JWT + HATEOAS APIs under Spring Boot 2
License: Apache License 2.0
Sample project explaining how to build Dockerized Microservices using Netflix OSS + Spring OAuth/JWT + HATEOAS APIs under Spring Boot 2
License: Apache License 2.0
Hi,
I am trying to run auth-server standalone, without eureka. When i trigger POST method for token, I got empty response.
REQUEST:
curl -v POST http://localhost:9999/uaa/oauth/token -H 'Authorization: Basic YWRtaW5hcHA6cGFzc3dvcmQ=' -H 'Content-type: application/x-www-form-urlencoded' -d 'grant_type=password&username=admin&password=password'
Can you pls explain me, what am i doing wrong?
Thanks :)
Thank you for sharing this project. It's saved me a lot of effort. I ran the project and only one of them is failing. The snippet is this:
@Override
public Authentication extractAuthentication(Map<String, ?> map) {
if (map.containsKey(USERNAME))
return new UsernamePasswordAuthenticationToken(
new CustomPrincipal(map.get(USERNAME).toString(), map.get(EMAIL).toString()), "N/A",
getAuthorities(map));
return null;
}
It kept on showing an error that CustomPrincipal cannot be applied to java.lang.String when the 2 variables.(USERNAME, EMAIL) are passed. Could you Kindly help look into it? THere's no constructor that accepts 2 arguments for CustomPrincipal, I think. My question is how come there are arguments passed into the constructor here? Please, help
Thanks. God bless.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.