cognito-auth-service

module
v0.0.0-...-135feef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2020 License: MIT

README

Cognito Auth Service

Auth service built using Go in AWS Cognito. To use this repository as your auth service, your Cognito User Pool must follow this configurations.

Available Functionalities

  • User self signup
  • Confirm signup
  • Admin create user
  • Force change password when user is created by admin
  • Signin
  • Get new Id-Token and Access-Token uaing Refresh-Token
  • Reset password
  • Change password staying signed in
  • Admin delete user
  • Create user group
  • Admin add user to group
  • Delete user group
  • Admin remove user from group

Exposed APIs

  • Sign Up - /auth/signup
  • Confirm Sign Up - /auth/confirm-signup
  • Sign In - /auth/signin
  • Refresh Token Auth - /auth/refresh-token-auth
  • Forgot Password - /auth/forgot-password
  • Confirm Forgot Password - /auth/confirm-forget-password
  • Change Password - /auth/change-password
  • Resend Confirmation Code - /auth/resend-confirmation-code

Run The Server Without Build For Development

AWS_PROFILE={profile} AWS_REGION={region} USER_POOL_ID={user-pool-id} APP_CLIENT_ID={app-client-id} go run cmd/main.go

Directories

Path Synopsis
core
validation
This package has custom validators that are used to validate field
This package has custom validators that are used to validate field
service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL