项目作者: udelblue

项目描述 :
Spring OAuth Server with UI for login, password reset and registration. Connection the a SQL Server backend
高级语言: Java
项目地址: git://github.com/udelblue/OAuth-Authorization-Server_with_UI.git


OAuth Server with Login UI

Installation

Application requires ms sql server driver to run.

Open command line in project directory and navigate to ‘MavenScripts.bat’. Execute .bat to install sqljdbc jar in maven repository.

  1. cd src
  2. cd main
  3. cd resources
  4. MavenScripts.bat

Configure connection string. Open ‘application.yml’ to configure. Currently pointed to localhost

  1. spring:
  2. datasource:
  3. url: jdbc:sqlserver://localhost:1433;databaseName=OAuth
  4. username: oauth
  5. password: oauth#1234
  6. driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
  7. initialize: true

Configure SMTP. Open ‘application.yml’ to configure.

  1. app:
  2. name: name_of_email
  3. smtp: smtp.test.com
  4. smtpfrom: noreply@test.com

Configure port. Open ‘application.yml’ to configure.

  1. server:
  2. port: 8080

Build

Open command line in project directory. Run ‘mvn clean package’ to clean and build project.

  1. mvn clean package

Run

Open command line in project directory. Run jar

  1. cd target
  2. java -jar OAuth-UI-1.0.jar

Verify the deployment by navigating to your server address in your preferred browser.

  1. 127.0.0.1:8080