Login with External Provider

Page Purpose: Authenticate using OAuth/external providers.
User Context: User wants to login/register using external account.
Next Steps: After OAuth → User Dashboard or profile completion

Available Login Providers

Note: More providers (Google, Microsoft, etc.) can be added in the future.

Or Use Email & Password

Login with email and password
Create a new account

Facebook OAuth Flow

  1. User clicks "Continue with Facebook"
  2. Redirected to Facebook login page
  3. User authorizes Remarx app
  4. Facebook redirects back with authorization code
  5. System exchanges code for access token
  6. System retrieves user info from Facebook
  7. Check if external login is already linked to account
  8. If linked: Complete login
  9. If new: Create account or link to existing

New User Association

For first-time Facebook login:

Option 1 - New Account: Option 2 - Link to Existing:

Profile Completion Form

Data Model

AspNetUsers Table: AspNetUserLogins Table: Retrieved from Facebook:

Security Considerations

User Management

Users can manage external logins in: Features:

Configuration Requirements

Facebook App Configuration: Application Configuration:

Error Handling

Common errors: