Skip to content

Installation

Ken Williamson edited this page Jan 18, 2020 · 38 revisions

Installing GoAuth2

Install Database

The default database for GoAuth2 is MySql.

  1. Download the go_auth2.sql file here
  2. Run the go_auth2.sql file on a MySql Server

Compile GoAuth2

  1. Run build.sh if you are on a Linux compile on other systems
  2. Copy the following to where you want to run GoAuth2
    • main file
    • static folder

Set Environment Variables

Database Variables

  • GOAUTH2_HOST (database host URL)
    • when not set, defaults to: localhost:3306
  • GOAUTH2_USER (database username)
    • when not set, defaults to: admin
  • GOAUTH2_PASSWORD (database password)
    • when not set, defaults to: admin
  • GOAUTH2_DATABASE (database name)
    • when not set, defaults to: go_auth2
  • AUTHENTICATION_SERVICE (Authentication server URL: default is GoAuth2Users)

Start Authentication Service (GoAuth2Users)

  1. Run the GoAuth2Users Service
    • Username = admin
    • Password = admin

Run GoAuth2

  1. Run ./start.sh to start GoAuth2 on a Linux platform
    • On other platforms, copy the content of start.sh and modify it for your platform