Back to sc-auth

SalesCandy Git archive

sc-auth

Handles authentication, token refresh, and authorization.

README

This repository manages core authentication logic, including token refreshing and authorization checks. It ensures secure access to protected resources.

Use Case: Manages user sessions and access tokens for the application. Inputs include credentials or existing tokens. Outputs are new access tokens or authorization responses.

Selected files and folders

  • README.md
  • handlers
  • package.json
  • serverless.yml

Reconstructed issues

Summaries inferred from the archive. Original issue records are unavailable here.

Attestation/Version Check Failures in Postman

The system failed to correctly validate client attestation and version checks when tested using Postman. This required adjustments to the validation logic to ensure robustness across different testing environments.

e892101bb735

Credential Management Update

The configuration needed updating to align with a new credential management scheme. This change ensures that the system correctly reads and utilizes the latest credential sources for authentication.

f695bba68c51

Missing API Version in Login Request

The system would fail to get the latest API version if it wasn't explicitly provided in the login request payload. A fix was implemented to reliably fetch this version when necessary.

0dd931dfe945

Selected commits

  1. Update config to match new credentials management scheme

    Reza Rosli ·

    f695bba68c5108c5a7ee25094e2cd3bc041fda70

  2. Fix issues with attestation checks and version checks when tested with Postman

    Reza Rosli ·

    e892101bb735ea40f361196ad3b9d627182299e7

  3. Clean up encryption helper. Previous dev copy-pasted from a different project and left it a mess

    Reza Rosli ·

    986f652aa64ded943ef07a89f0c5fbdfeb5f7f69

  4. Add notes after reviewing the biometric login code

    Reza Rosli ·

    8d47b425c2e6c04f37767ee871e24e2f8ed6b9f4

  5. Archived revision

    Reza Rosli ·

    8bb3d57cbd291637d8c0fcf61132137b9cc554a6

  6. More comments

    Reza Rosli ·

    0435ae59bf64343c9c7f855452d7a1788b229bbe

  7. Remove unnecessary logs

    Reza Rosli ·

    d063f5f79af8953f0991b8314a41542b0e7c1810

  8. Add *simple* security to private API endpoint updateAppVersion

    Reza Rosli ·

    c440ed3568f746a07d33897570a3c4d06946fef0

  9. Add codedoc and refactoring

    Reza Rosli ·

    8062d3a65ac8fbe7f61155ee187a88747c7ba7e5

  10. Bugfix: Invalid tenantId when it is not provided in the header for refreshing JWT (assumed we want to refresh for the same tenant)

    Reza Rosli ·

    697754c64fd9627d8fd1085d4fced80e810a5bee

  11. Bugfix: get latest API version if not specified in login request

    Reza Rosli ·

    0dd931dfe945225b152ab5a279ee76ab04ea3842

  12. Add guards so that tokens always have sane values

    Reza Rosli ·

    b4dee8c75a22f4aa1a6a0df651e5dfcaabd8a63b

  13. Housekeeping

    Reza Rosli ·

    834e3178ee0af8bbbf4370d216a880cec226f34a

  14. Add support for static OTP and extended token time-to-live for test users

    Reza Rosli ·

    0112d3b6df817888cc3ffd8d688d109bb7477ab6

  15. Have shorter token lifetime for manager portal

    Reza Rosli ·

    b9b3d86caca5e3f55aa4d1073a65c051abfd890c

  16. Add support for manager portal now using authorization header

    Reza Rosli ·

    88c8c26bfbfbd7babe4b3f362b8fe8daea8d3705

  17. Add username to permission object

    Reza Rosli ·

    b6fd633d75b22ed00365a05487d9a997aa1606ab

  18. updated node_modules

    Shoaib ·

    cc78736fd6d3d00b646f5b02dfcd1cb7ee1841d9

  19. Reduce memory setting for send otp lambda

    Shoaib ·

    a74202375aa44a0398e4fbb88ed7762210e34e16

  20. Initial commit

    Shoaib ·

    a2355e354dc8969cf94b03e87e0d794e36edcc9d

  21. Initial commit with improved code and separation from the customer-api repository

    Shoaib ·

    8510826fb0acc032a0d7e9b513d21ffe01355524