Giter VIP home page Giter VIP logo

auth-server's Introduction

mpt-auth-service

How to use

  • Run Local
    $ git clone https://github.com/LeeJusuk208/auth-server.git
    $ cd auth-server
    $ ./gradle_build.sh # Spring build with Gradle
    $ java -jar ./build/libs/auth-server-1.0.jar
  • Run Docker
    $ git clone https://github.com/LeeJusuk208/auth-server.git
    $ cd auth-server
    $ vi docker_config.json # Type Your Docker Hub Name and Repository
    $ ./docker_push.sh # Build Docker Image and Push to Docker Hub
    $ docker run -p 8080:8080 [Docker Hub Image]:latest
  • Before running the server, you need to create an application.yml file
    $ vi ./auth-service/src/main/resources/application.yml
  • application.yml
    OAuth2:
        google:
            url : https://accounts.google.com/o/oauth2/v2/auth
            client-id : "Your Google Web Application Client ID"
            client-secret : "Your Google Web Application Client Secret"
            callback-url : [URL Base]/api/oauth/login/google/redirection
            token-url : https://oauth2.googleapis.com/token
            userinfo-url : https://www.googleapis.com/oauth2/v1/userinfo
            scope : https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
        kakao:
            url : https://kauth.kakao.com/oauth/authorize
            client-id : "Your Kakao Application Client ID"
            callback-url : [URL Base]/api/oauth/login/kakao/redirection
            token-url : https://kauth.kakao.com/oauth/token
            userinfo-url : https://kapi.kakao.com/v2/user/me
        naver:
            url : https://nid.naver.com/oauth2.0/authorize
            client-id : "Your Naver Application Client ID"
            client-secret : "Your Naver Application Client Secret"
            callback-url : [URL Base]/api/oauth/login/naver/redirection
            token-url : https://nid.naver.com/oauth2.0/token
            userinfo-url : https://openapi.naver.com/v1/nid/me
    Token:
        secret-key : "Your Secret Key"
    
    spring:
        datasource:
            url: jdbc:mariadb://[Your DataBase IP]/[DB name]?useUnicode=true&characterEncoding=utf-8
            driver-class-name: org.mariadb.jdbc.Driver
            username: admin
            password: passwd
        session:
            timeout: 600
            store-type: jdbc
            jdbc:
                initialize-schema: never
                table-name: [Table name]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.