Skip to content

Demo web service, which is supply upload file service with identity verification.

Notifications You must be signed in to change notification settings

weizhe0422/WebServiceWithLoginAndUpload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upload File Service With SSO

This project is a demo web service, which is supply upload file service with identity verification.

Requirements

Golang 1.11 and above

Installation && start up

Installation

  • go get github.com/weizhe0422/WebServiceWithLoginAndUpload.git

Features

  • Already have existing web pages with web services function call
  • Use cookie to support Single-Sign-on, you can upload file within 1 minutes without login again
  • Support multiple files upload function, and get the last result before next upload request
  • Support upload file to server side or AWS S3
  • Support upload big file to server side or AWS S3, but less than 100MB
  • Use Mongo to save user information
  • Support Github OAuth authorizing.

Start up

  1. change disk to project folder
  2. Download mongo docker image, and type docker load < /dockerImg/mongodb.tar to load into. Dock image: https://drive.google.com/file/d/1pMvN7ZtE_A-7VWdu-N1vX7zD6bqxQnKp/view
  3. type go run main.go in terminal to launch
  4. use web browser and type http://localhost:8080
  5. Input E-Mail and password to log in 5.1 If the E-Mail and password is valid, then you can go through to upload web page

Login

5.2 If invalid to find E-mail and password, then you need to registration page to registered.

Login

6. Multi-select target and press UPLOAD button to upload files

Multi-select-files

7. You will get the last upload information, and also can do the next upload action

UploadResult_S3

UploadResult_Server

About

Demo web service, which is supply upload file service with identity verification.

Resources

Stars

Watchers

Forks

Packages

No packages published