ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 2 replies, has 1 voice, and was last updated by Stepan Yudin Stepan Yudin 1 year, 9 months ago.

  • Creator
    Topic
  • #12843
    Stepan Yudin
    Stepan Yudin
    Participant

    Good day, everyone.

    I need to extend authentication mechanism for my needs.
    To do this i created Custom Form Password Authenticator

    1) I changed firewall settings:

    2) I created service for my_authenticator

    3) And here is the code of MyAuthenticator

    When i try to authenticate user – i succesfully log in, but i dont see anything except black header and profiler. Profiler says me, that i’m logged as USER_NAME (yellow color), and not authenticated (red color).
    Can you give me an advice – how to make t work?
    And one more question – how can i retrieve user’s organization in this authenticator class?


    Docker environment for Symfony2/OroCRM/OroBAP development on Windows platform
    https://github.com/stepansib/sf-oro-docker

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #12851
    Stepan Yudin
    Stepan Yudin
    Participant

    Dont be afraid of missing password check, i’ll add password encoder injection later.


    Docker environment for Symfony2/OroCRM/OroBAP development on Windows platform
    https://github.com/stepansib/sf-oro-docker

    #12853
    Stepan Yudin
    Stepan Yudin
    Participant

    Already solved this problem myself: i dint specified user role on UsernamePasswordOrganizationToken creation.
    Now it works fine)


    Docker environment for Symfony2/OroCRM/OroBAP development on Windows platform
    https://github.com/stepansib/sf-oro-docker

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.