GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cms-orbits/cms-users-admin: This application is the result of doing reversing engineering to the Contest Management System and provides a backend layer for controlling the register of new users, also present a new entity to complete the user's information.

BranchesTags
Open more actions menu

Latest commit

 

History

94 Commits
94 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

cms-users-admin

Build Status

This application is the result of doing reversing engineering to the Contest Management System(CMS) and provides a backend layer for controlling the register process of new users.

Development

Build locally

  1. mvn install
  2. mvn package
  3. mvn spring-boot:run

Configuration file

It's necessary to add some properties to the configuration file before of running the application, these properties are:

  • Cookie secret key
  • CMS domain
  • CMS port
  • Database connection
  • Message broker
  • OAuth
  • Proxy considerations

The file is locate in src/main/resources.

Cookie secret

The cookie secret key is a string characters which is used to encrypt a user password. It's mandatory to put the same string that was added in CMS configuration file.

  cookie-secret: 8e045a51e4b102ea803c06f92841a1fb

CMS Domain

The domain name is necessary to redirect a login request to CMS home page.

  cms-domain: 192.168.187.134

CMS Port

A port number is required only if the CMS Server is reached by IP route instead of using a sub-domain

  cms-port: 8888

Database connection

To set up a connection to the CMS a database connection is mandatory. It's described into the application properties file.

---
spring:
  profiles: development
  db-one:
    datasource:
      url: jdbc:postgresql://192.168.187.133:5432/cmsdb
      username: postgres
      password: postgres1

RabbitMQ connection

As same as the database the RabbitQM connection depends on multiple fields.

----
spring:
  rabbitmq:
    host: 192.168.187.133
    port: 5672
    username: rabbit
    password: rabbit1

Security

CMS-users-admin uses OAuth protocol to allow authenticated access to its resources by establishing a connection to a specific social network provider.

---
security:
  google:
    client:
      clientId:
      clientSecret:
  ...
  ...
  github:
    client:
      clientId:
      clientSecret:

Proxy considerations

If you are using a http-proxy in between to redirect all the HTTP requests to CMS-users-admin make sure to include the parameter authorization in each request.

Authorization: Bearer eyJh123tokentest

Configuration overrides

As it is known spring boot let externalize the application configuration, in order to do that parameters can be injected using the following formats.

Running a jar file

java -jar cmsusers.jar --spring.db-one.datasource.username=custom_user

Running a docker image

docker run -p 8081:8081 -e SPRING_DB_ONE_DATASOURCE_USERNAME='custom_user' cmsorbits/cms-users:1.1

About

This application is the result of doing reversing engineering to the Contest Management System and provides a backend layer for controlling the register of new users, also present a new entity to complete the user's information.

Topics

docker-imagejavamicroservicerabbit-publisherspring-boottravis-ci

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

3 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.