Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Membership] Implement member sign in / sign out #87

Open
dominikag2 opened this issue Nov 7, 2024 · 0 comments
Open

[Membership] Implement member sign in / sign out #87

dominikag2 opened this issue Nov 7, 2024 · 0 comments

Comments

@dominikag2
Copy link
Contributor

Motivation

Members are users who can register and sign in to the live site, but not the administration interface.
After they have registered, they need to be able to sign in to access some pages/content that is restricted for anonymous site visitors.

We need to implement Sign in / sign out functionality in our repo to show our partners and customers a real-world example for XbyK.

Proposed solution

  • Implement a configurable widget that can be used on a sign-in page or anywhere else on a site where a vendor wants to invite the user to sign in. Conditionally sign in / sign out
  • implement a sign in / sign out button in the header
@kentico-matthews kentico-matthews changed the title Implement member sign in / sign out [Membership] Implement member sign in / sign out Nov 18, 2024
dominikag2 added a commit that referenced this issue Nov 27, 2024
kentico-matthews added a commit that referenced this issue Jan 15, 2025
… repository (#88)

* GH-86 :: Create registration widget directory

* GH-86 :: begin progress implementing registration

* GH-86 :: fix spelling in widget properties

* GH-86 :: progress

* GH-86 :: registration widget progress

* GH-89 :: add membership service - menat to handle all user manager stuff

* GH-89 :: sign in widget WIP

* GH-86 :: updates to registration server-side form validation

* GH-86 :: move UserManager code for registration into the MambershipService, extend the MemberInfo class to reflect custom fields

* GH-86 :: fix label in registration form

* GH-86 :: add title to registration form and fix typo in custom MemberInfo field name

* GH-89 :: sign in widget WIP, relocate Authentication and registration controllers.

* GH-86 :: add link/sign out widget, move registration controller, add auth check to registration view component

* GH-89 :: extract sign in logic into the Membership service

* GH-86 :: add sign out functionality

* GH-86 :: add widget configuration validation

* GH-86 :: add registration page, enable non-required strings in form, fix button issue in sign out widget

* GH-89 :: sign in form signs you in, but errors nor the redirect afterwards work

* GH-89 :: fix error rendering for sing-in

* GH-89 :: fix sign in button formatting in Sign in widget; Add LinkOrSignOut to Sign in page; render LinkOrSignOut widget in the header (TODO: retrieve the Sign in page. For now it only shows up if user is authenticated)

* GH-89 :: UI improvements

* GH-86 :: adjust form target and controller action name for sign out, add signed-in status check before rendering registration form

* GH-89 :: add contact mapping for membership, update custom field names on member class

* GH-89 :: redirecting after successful sign in.

* GH-89 :: redirect page after sign in - let user pick is in the widget, add tests

* GH-89 :: set code to remove cookies when the member signs out, so the same contact does not get associated with a different member if someone else logs in in the same browser session

* GH-89 :: Navigate to sign in page from button in the header if not signed in yet

* GH-89 :: move mapper to services, add service to map members to contacts outside of default events, map during sign-in, add more handling for cookie/contact data

* GH-89 :: Handle login success with JS and return partial view on error

* GH-86 :: add translations and point registration page link to sign in page

* GH-89 :: fix the order of middlewares, wrap authentication js in VC

* GH-89 :: remove unused parameter and nuget package. make the Sign in widget view model inherit from WidgetViewModel

* GH-86 :: refactoring

* GH-89 :: Sign up and Sign in - add some styling

* GH-86 :: tests for log out widget

* GH-91 :: Implement email confirmation after registration

* GH-90 :: Redirect unauthenticated requests for secured pages to sign in page, append ReturnUrl query string parameter

* GH-89 :: sign in redirect - WIP

* GH-89 :: remove authentication scripts - not needed anymore, we chose a different approach

* GH-90 :: Add functionality to return member to the secured page they tried to access after successfully signing in

* GH-90 :: add summary for new service method

* GH-87 :: add membership service documentation

* GH-86 :: Fix localization in registration action

* GH-90 :: Add language checks when redirecting 403 to sign in page

* GH-89 :: Merge contacts when signing in

* GH-90 :: Add functionality to hide or prompt login in listing page for secured articles

* GH-90 :: adjust widget configuration on widget samples page to include new column

* GH-69 :: fix missing page urls for spanish in articles

* GH-69 :: Fix spanish URL paths for CI copied articles

* GH-90 :: Add secured checks to content querying, adjust url retrieval in article page service

* GH-90 :: add translations, small refactor on sign in prompt

* GH-92 :: initial code for reset password functionality,

* GH-92 :: improvements to localization of reset password functionality

* GH-93 :: initial progress on profile page

* no message

* GH-87 :: implement review suggestions (together with the previous commit with the accidentally empty message)

* GH-91 :: implement review suggestions - fix multilingual URLs

* GH-93 :: Continue progress on profile page

* GH-93 :: register UpdateProfileService with DI

* GH-93 :: add localization, rearrange pages, small refactors

* GH-91 :: use constant for "authenticate" action

* GH-90 :: implement feedback suggestion, changing CTA text on article list

* GH-93 :: reorganize files for profile

* GH-93 :: refactoring and value changes in controller

* GH-86 :: refactor how DI services are populated

* GH-89 :: refactor to use constants for recurring strings

* GH-90 :: refactor method name for return url in sign in widget

* GH-92 :: fix controller action path

* GH-90 :: fix article page service tests

* GH-93 :: Adjust profile to display full name, email, and created within the form view

* GH-93 :: add translations and rearrange viewmodel

* GH-87 :: fix a sign in widget view component unit test

* GH-92 :: refactor reset password functionality

* GH-86 :: Add action path constant to registration widget

* GH-90 :: account for secured reusable pages referenced by unsecured pages, refactor

* GH-93 :: refactoring relating to profile update page

* GH-90 :: demonstrate secured reusable content on unsecured page

* GH-90 :: Rearrange code order

* GH-90 :: fix forbidden content issue

* GH-88 :: Progress on implementing feedback

* GH-88 :: Feedback progress

* GH-88 :: Feedback progress

* GH-88 :: Feedback progress

* GH-88 :: Feedback implementation progress

* GH-88 :: Feedback progress

* GH-88 :: sort usings

* GH-88 :: replace "== null" and "!= null" with "is null" and "is not null"

* GH-88 :: small fixes

* GH-88 :: add comments to http service

* GH-88 :: small refactors and reformatting

---------

Co-authored-by: DominikaG2 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant