Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

feat: authentication system #108

Merged
merged 18 commits into from
Mar 11, 2022
Merged

feat: authentication system #108

merged 18 commits into from
Mar 11, 2022

Commits on Nov 17, 2021

  1. feat: authentication system server (#72)

    * auth server imp
    
    * fix
    
    * - fix state parameter
    - add x509 cert implementation
    
    * - add x509 cert to key store
    - fix request is not updated
    - fix refresh token flow
    - handle login error messages
    - get first key as default if kid is not presented
    
    * - fix linting issues
    
    * - accept form payload in login request
    
    * - code enhancement
    - fix PR comments
    
    * - fix devMode
    
    * - give credentials type a better name
    
    * - add test for User_GetAuthByProvider
    
    * - define custom error for invalid login
    
    * - enhance unique list method performance
    
    * - fix package alias
    
    * - refactor storage init
    
    * - use usecase instead of controller
    - remove unused controller method
    
    * - move shared clients into separated file
    
    * - handle concurrency in auth storage
    
    * - fix go mod
    
    * - refactor part of the code
    
    * - fix error handling
    - load Pkix from config
    
    * - use dummy DN for the cert
    - remove unnecessary fields from the cert
    
    * - get user info from db
    
    * - add missing cn
    - pass get user func instead of userUseCase
    
    * - code enhancement
    yk-eukarya committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    b6b6ece View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2021

  1. - sign the issued access token with signingKey (#76)

    - remove default key selecting
    yk-eukarya committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    b805bd7 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2021

  1. fix: go/mod file

    mimoham24 committed Nov 22, 2021
    Configuration menu
    Copy the full SHA
    482518f View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2021

  1. feat: Auth logout (#82)

    * - logout api
    
    * - remove the unnecessary wrap method
    - fix http redirection status
    
    * - add another logout endpoint for auth0/auth0-react
    yk-eukarya committed Nov 24, 2021
    Configuration menu
    Copy the full SHA
    58aeb13 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2021

  1. feat: create mailer (#63)

    * feat: create mailer (go-mailer is used)
    
    * fix linter
    
    * sendGrid implementation
    
    * refactor: separate smtp and sendgrid
    
    * refactor: add sender name to config
    
    * fix newWithSMTP wrong parameter
    
    * mixed email content
    break down MailerConfig struct
    
    * resolve notes
    
    * resolve notes
    testing
    
    * testing
    
    * test cases
    
    * test cases
    
    * Merge branch 'feat/authentication-system' of https://github.com/reearth/reearth-backend into auth/mailer
    
    # Conflicts:
    #	go.mod
    #	internal/app/config.go
    
    * Merge branch 'feat/authentication-system' of https://github.com/reearth/reearth-backend into auth/mailer
    
    # Conflicts:
    #	go.mod
    
    * swap plain and html contents
    
    * switch to alternative
    
    * remove unused functions
    
    * validate email and smtp url
    mimoham24 committed Nov 25, 2021
    Configuration menu
    Copy the full SHA
    2632fe9 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2021

  1. Configuration menu
    Copy the full SHA
    532423b View commit details
    Browse the repository at this point in the history
  2. feat: authentication system - mongo storage (#84)

    * - Model
    - Repo
    
    * - fix go mod
    
    * - move auth storage logic to usecase\interactor
    
    * - fix lint issue
    
    * - fix PR comments
    
    * implement memory storage for authRequest repo
    yk-eukarya committed Dec 6, 2021
    Configuration menu
    Copy the full SHA
    3913545 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2021

  1. refactor: signup (#65)

    * remove sugnup mutation
    
    * new signup logic
    
    * merge auth0 and signup logic
    
    * lint
    
    * revert signup mutation
    
    * resolve notes
    
    * remove password length
    
    * resolve notes
    
    * test cases
    
    * change comparing method
    
    * resolve notes
    
    * match password
    
    * update user data-layer
    
    * feat: password reset (#79)
    
    * - password reset
    
    * - refactor
    
    * - implement the memory repo
    
    * - remove unnecessary structs
    
    * - fix password reset token validation
    - add unit test
    
    * - fix linting
    
    * - fix unit test
    
    * - refactor
    
    * - replace uuid lib
    - rename validate method
    
    * - fix go mod
    
    * - fix go mod
    
    * - enhance unit test
    
    * - enhance unit test
    
    * mock
    
    Co-authored-by: rot1024 <aayhrot@gmail.com>
    
    * feat: send mail (#86)
    
    * - send mail
    
    * enhancement
    
    * fix log
    
    * notes
    
    * - add email design
    
    * resolve
    
    * fix user model
    
    * refactor: move to bcrypt
    
    * update verify password checks
    
    Co-authored-by: yk-eukarya <81808708+yk-eukarya@users.noreply.github.com>
    Co-authored-by: rot1024 <aayhrot@gmail.com>
    Co-authored-by: yk <yk.eukarya@gmail.com>
    4 people committed Dec 13, 2021
    Configuration menu
    Copy the full SHA
    1e6d442 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2022

  1. Update from main

    yk-eukarya committed Jan 10, 2022
    Configuration menu
    Copy the full SHA
    3ce89d7 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2022

  1. feat: store auth cert in db (#88)

    * - save the key and the cert of auth server in mongo db
    
    * - fix lint
    
    * - make auth srv returns error instead of panicking
    
    * - lock config
    
    * - refactor
    - fix memory imp
    
    * - fix load method
    
    * - fix load method
    
    * - add minimum duration to reload config
    
    * - fix pr comments
    
    * - fix lock logic
    
    * fix lint
    
    * - fix config repo
    - use config repo in migrations
    
    * - remove unused code
    
    * store cert as string
    
    * fix string conversion
    yk-eukarya committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    e6312a7 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2022

  1. Merge remote-tracking branch 'oss/main' into feat/authentication-system

    # Conflicts:
    #	pkg/user/builder.go
    #	pkg/user/builder_test.go
    #	pkg/user/initializer_test.go
    #	pkg/user/user.go
    yk-eukarya committed Jan 26, 2022
    Configuration menu
    Copy the full SHA
    191da07 View commit details
    Browse the repository at this point in the history
  2. fix tests

    yk-eukarya committed Jan 26, 2022
    Configuration menu
    Copy the full SHA
    3d784af View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2022

  1. feat: auth client support multi issuer (#102)

    * upgrade to go-jwt-middleware/v2
    
    * omp multi iss
    
    * imp multi iss
    
    * fix pr Comments
    yk-eukarya committed Feb 4, 2022
    Configuration menu
    Copy the full SHA
    5ae8a8c View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2022

  1. update from main branch

    yk-eukarya committed Feb 7, 2022
    Configuration menu
    Copy the full SHA
    7f136dd View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2022

  1. feat: validate password criteria (#116)

    * password criteria
    
    * fix linter
    
    * Update pkg/user/user.go
    
    Co-authored-by: yk-eukarya <81808708+yk-eukarya@users.noreply.github.com>
    
    * Update pkg/user/user.go
    
    Co-authored-by: rot1024 <aayhrot@gmail.com>
    
    * fix test
    
    * add test case for non-latin characters password
    
    Co-authored-by: yk-eukarya <81808708+yk-eukarya@users.noreply.github.com>
    Co-authored-by: rot1024 <aayhrot@gmail.com>
    3 people committed Mar 4, 2022
    Configuration menu
    Copy the full SHA
    d3f508d View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2022

  1. Merge remote-tracking branch 'oss/main' into feat/authentication-system

    # Conflicts:
    #	go.mod
    #	go.sum
    #	internal/app/app.go
    #	internal/app/public.go
    yk-eukarya committed Mar 10, 2022
    Configuration menu
    Copy the full SHA
    8d6713e View commit details
    Browse the repository at this point in the history
  2. - fix merge issues!

    yk-eukarya committed Mar 10, 2022
    Configuration menu
    Copy the full SHA
    db7e4ac View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2022

  1. refactor: refactor signup code (#120)

    Co-authored-by: yk-eukarya <81808708+yk-eukarya@users.noreply.github.com>
    Co-authored-by: yk <yk.eukarya@gmail.com>
    Co-authored-by: rot1024 <aayhrot@gmail.com>
    4 people committed Mar 11, 2022
    Configuration menu
    Copy the full SHA
    da25f18 View commit details
    Browse the repository at this point in the history