GithubHelp home page GithubHelp logo

Comments (2)

asm89 avatar asm89 commented on May 17, 2024

It's been a while so I'm closing this. Feel free to reopen and ping me if you still have questions.

from hwioauthbundle.

sonlv-enguys avatar sonlv-enguys commented on May 17, 2024

I also see this
In security.yml:

firewalls:
        main:
           pattern:    ^/
           anonymous:    true
           oauth:
                resource_owners:
                    bespokify:   "/api/oauth/login/check-bespokify"
                login_path:   /api/oauth/login
                check_path:   login_check
                use_forward:    false
                failure_path:   /api/oauth/login
                default_target_path:    /api/doc
                oauth_user_provider:
                    service: my_user_provider
           logout:
               path:   /api/oauth/logout
               target: /api/oauth/login

Then config.yml

 hwi_oauth:
    connect:
        account_connector: my_user_provider
    firewall_name:    main
    resource_owners:
        bespokify:
            type:                oauth2
            client_id:           6_2v1twgv5je0wowkc0c8wogswowco8sck48oc8gsssg0wscg0cs
            client_secret:       2pl9kuxd6im8ooc0gckows08cwo8o0kc4o4koosw0csg0kocws
            access_token_url:    http://bespokify.server.local/app_dev.php/oauth/v2/token
            authorization_url:   http://bespokify.server.local/app_dev.php/oauth/v2/auth
            infos_url:           http://bespokify.local/app_dev.php/api/user
            scope:               user
            user_response_class: HWI\Bundle\OAuthBundle\OAuth\Response\PathUserResponse
            paths:
                identifier: id
                nickname:   username
                realname:   fullname

    fosub:
        username_iterations: 30
        properties:
            bespokify: bespokifyID

and service.yml

parameters:
    my_user_provider.class: Bespokify\UserBundle\Provider\FOSUBUserProvider

services:
    my_user_provider:
        class:    "%my_user_provider.class%"
        arguments:    [@fos_user.user_manager,{bespokify: bespokifyId}]

=> the custom bespokify response never goes through the
FOSUBUserProvider->loadUserByOAuthUserResponse. I made ​​a mistake somewhere? Thank

from hwioauthbundle.

Related Issues (20)

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.