Scaffoldly
  • Introducing Scaffoldly
  • How To's
    • Infrastructure
      • AWS
        • Finding Logs
        • Migrate Account Away from the Scaffoldly Organization
      • Terraform
        • Custom Terraform
        • Deploying Changes
    • Microservices
      • Running Locally
      • Adding Additional Microservices
      • User Authentication
      • Adding API Endpoints
      • Storing and Retrieving Data
      • Deploying Changes
  • FAQs
  • Roadmap
  • Contributing
  • Credits
  • Archive
    • Open Source Components
Powered by GitBook
On this page

Was this helpful?

  1. How To's
  2. Microservices

User Authentication

PreviousAdding Additional MicroservicesNextAdding API Endpoints

Last updated 3 years ago

Was this helpful?

If you enabled the Authentication microservice, additional services are pre-wired to use it for pass-through authentication.

Within other microservices, use the @Securty('jwt') annotation in the Controller on methods to enforce that an Authorization header is required with the request.

Testing Authentication Locally

Microservices running Locally are configured to allow authentication tokens from the Nonlive environment.

By default, emails can only be sent to your Scaffoldly email account, also shown on the Dashboard

Click Authorize and paste the token, and invoke an endpoint with the padlock icon.

If you've set a breakpoint, you can see that the httpRequest.user is populated with the user's identity.

Go to the and find the JWT Token Generator

Run your (optionally in ), and open the

Scaffoldly Dashboard
Microservice locally
Debug Mode
Swagger UI