Giter VIP home page Giter VIP logo

microservices-oauth's People

Contributors

enr1c091 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

microservices-oauth's Issues

Cannot get JWT token

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 :)

CustomPrincipal cannot be applied to java.lang.String

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.