Giter Site home page Giter Site logo

Purpose of check_path about silex-oauth HOT 5 CLOSED

gigablah avatar gigablah commented on September 7, 2024
Purpose of check_path

from silex-oauth.

Comments (5)

sashless avatar sashless commented on September 7, 2024

Okay i think the purpose of check_path is the same described here http://symfony.com/doc/current/reference/configuration/security.html ?

from silex-oauth.

sashless avatar sashless commented on September 7, 2024

So i changed the check_path accordingly to the docs and now i get an error that the access token is not stored in session. From reading the code it should be set automagically. Any hints what i am missing ?

from silex-oauth.

gigablah avatar gigablah commented on September 7, 2024

Did you enable the SessionServiceProvider?

from silex-oauth.

sashless avatar sashless commented on September 7, 2024

yea did that. I am using the SilexSessionProvider but configured with storage \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage and as handler Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcacheSessionHandler

In addition i am registering a AttributeBag to store the session on app.session.

When i do replace it by the default SilexSessionProvider it does work.
Debugging on code shows me that the OAuthService is using a different app.session than i have registered.

from silex-oauth.

sashless avatar sashless commented on September 7, 2024

alright, i was able to track it down properly. Its related to the AttributeBag. I will close the issue now because the main problem is solved from my POV and i will create a new one for the AttributeBag thingy.

from silex-oauth.

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.