Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • LostOne 8 posts 78 karma points
    Dec 04, 2020 @ 12:02
    LostOne
    0

    Register filter for authentication of users

    Hi! I'm in the situation of having to create a filter for authenticating users. If they are logged in (Windows authentication) then let them see the content. If not do something else... The solution I'm working on uses both SurfaceControllers (where [Authorize] won't work) and RenderMvcController (where it does). Earlier you could register this via global filters and now I think you should use the composer in some way. Could really need some help here... Thanks!

  • Kasey Sk 6 posts 76 karma points
    Dec 05, 2020 @ 10:38
    Kasey Sk
    0

    I added profile attributes in the processReqParams method above, and it's an example of how to programmatically add profile https://vidmate.bet/ attributes for a logged-in user. The method calls up the profileAttributeService that was defined for the SimpleAuthFilter bean, which allows us to manipulate profile attributes via the engine. You can verify that the attributes have been written to the database by consulting the jiprofileattributes table.

Please Sign in or register to post replies

Write your reply to:

Draft