feathers-mongoose-casl
Version 2.1.2
Version 2.1.2
  • feathers-mongoose-casl
  • Docs
    • Migrating
    • START A NEW PROJECT
      • Generate a new project.
      • install feathers-mongoose-casl
      • feathers-logger
      • Update config
      • Add mongoose
      • Email service
      • App hooks
      • Import required services
      • Verify user and filter user fields
      • Swagger, Logger, BodyParser
      • Email templates
      • public HTML
      • Run the server
      • Create you first user
      • vs code snippet extension
      • Test Login
      • Dashboard
      • Create a new Service with casl&Dashboard
      • Posts Postman snippet
      • Add Admin role
      • Done!
    • Advanced
      • Security - eslint-plugin-security
      • Security - rate limiting
      • Development tools
    • Guides
      • Throw errors
      • Auth Flow
      • Authentication
      • Authouriztion
      • /me
      • Rules Cache
      • Create a new service
      • Custom service validtor client data
      • validators
        • Example of use
        • Types
        • Mongoose schema
      • Default value
      • $Populate
      • Upload service
      • Upload files
        • Create upload service
        • Sign File After Populate
        • Storage support
          • Google-cloud
      • Error
      • feathers Client examples
      • Dashboard
        • Dashboard Config
          • Field configuration
          • doc Layout
          • custom Fields
            • customElements
        • Online dashboard
        • Add to your react app
      • customized feathers-mongoose-casl/services
      • Redis - in progress
      • S3
      • Postman
      • Swagger
      • debug
    • Production
      • ENV
    • Feathers wiki
      • Good links
    • utils
      • send email example
      • Async For Each
      • Create heroku server
      • pick
      • vs code snippet extension
      • Persist user request
    • Ecosystem
    • TODO
    • Versions updates
Powered by GitBook
On this page
  • We use 2 libraries to handle user authentication @feathersjs/authentication Feathers local, token, and OAuth authentication over REST and Websockets using JSON Web Tokens (JWT) with PassportJS.
  • How to Login?
  • How To disable the verify email service?
  • How to customize the verify and the reset view?
  • authentication-management end points
  • Please read this document https://github.com/feathers-plus/feathers-authentication-management/blob/master/docs.md
  • 1. Resend Verify Signup
  • 2. Check Unique
  • 3. Verify Signup Long
  • 4. Password Change
  • 5. Send Reset Pwd

Was this helpful?

  1. Docs
  2. Guides

Authentication

PreviousAuth FlowNextAuthouriztion

Last updated 5 years ago

Was this helpful?

We use 2 libraries to handle user authentication Feathers local, token, and OAuth authentication over REST and Websockets using JSON Web Tokens (JWT) with PassportJS.

Adds sign up verification, forgotten password reset, and other capabilities to local feathers-authentication

How to Create a new user?

curl -X POST \
  http://localhost:3030/users \
  -H 'Content-Type: application/json' \
  -H 'Postman-Token: 5ad6571f-e2dd-4737-b0e5-73d2fe8986fe' \
  -H 'cache-control: no-cache' \
  -d '{
	"email": "yourEmail@gmail.com",
	"password": "password"
}'

How to Login?

curl -X POST \
  http://localhost:3030/authentication \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Postman-Token: 5b8c84e3-303f-4eb2-9a24-06418fb7e8a8' \
  -H 'cache-control: no-cache' \
  -d 'email=doron.nahum%2B10%40gmail.com&password=password&strategy=local'

How To disable the verify email service?

set false at verifyEmail.enable in the config file

How to customize the verify and the reset view?

replace this html files in your public folder

fetch('/authManagement', {
  method: 'POST',
  headers: { Accept: 'application/json' },
  body: JSON.stringify(
    { action: <ACTION NAME>,
    value: <VALUE> 
  })
})

1. Resend Verify Signup

{ 'action':'resendVerifySignup',
'value':{ 'email':'userEaail@gmail.com' } }

2. Check Unique

{ 
  'action':'checkUnique', 
  'value':{
    'email':'userEaail@gmail.com'
  }
}

3. Verify Signup Long

{ 
  'action':'verifySignupLong', 
  'value':'281813b93785a68e7590833bed58e5' 
}

4. Password Change

{
 'action':'passwordChange', 
 'value':{ 
 'user':{ 'email':'userEmail@gmail.com' }, 
 'oldPassword':'password', 'password':'1234578' 
 }}

5. Send Reset Pwd

{
 'action':'sendResetPwd',
 'value':{ 
   'email':'userEmail@gmail.com' 
  }
}

end points

Please read this document

@feathersjs/authentication
feathers-authentication-management
authentication-management
https://github.com/feathers-plus/feathers-authentication-management/blob/master/docs.md