Giter Club home page Giter Club logo

digideskio / spring-boot-satellizer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ortizcarlos/spring-boot-satellizer

1.0 1.0 0.0 421 KB

Spring-boot-satellizer is an embedded Java Web application that implements support in Spring Boot to the token-based authentication module for AngularJS Satellizer (https://github.com/sahat/satellizer), currently support to Facebook and Google is included

Java 53.41% JavaScript 19.56% HTML 17.37% CSS 9.66%

spring-boot-satellizer's Introduction

spring-boot-satellizer

Spring-boot-satellizer is an embedded Java Web application that implements support in Spring Boot to the token-based authentication module for AngularJS Satellizer (https://github.com/sahat/satellizer), currently support to Facebook and Google is included

First step is Obtaining the Google and Facebook OAuth Keys

Obtaining OAuth Keys

- Visit [Google Cloud Console](https://cloud.google.com/console/project) - Click **CREATE PROJECT** button - Enter *Project Name*, then click **CREATE** - Then select *APIs & auth* from the sidebar and click on *Credentials* tab - Click **CREATE NEW CLIENT ID** button - **Application Type**: Web Application - **Authorized Javascript origins**: *http://localhost:3000* - **Authorized redirect URI**: *http://localhost:3000*

Note: Make sure you have turned on Contacts API and Google+ API in the APIs tab.


- Visit [Facebook Developers](https://developers.facebook.com/) - Click **Apps > Create a New App** in the navigation bar - Enter *Display Name*, then choose a category, then click **Create app** - Click on *Settings* on the sidebar, then click **+ Add Platform** - Select **Website** - Enter *http://localhost:3000* for *Site URL*

Next in app.js replace your client ids

angular.module('MyApp', ['satellizer'])
  .config(function($authProvider) {

    $authProvider.facebook({
      clientId: 'Facebook App ID'
    });

    $authProvider.google({
      clientId: 'Google Client ID'
    });

   ...

  });

And in application.propeties replace your secret keys

spring.thymeleaf.cache=false
server.port=8080
spring.thymeleaf.prefix=file:./wwwroot/templates/
static.resources.filepath=file:./wwwroot/
logging.level.org.springframework.web=DEBUG
logging.level.co.agileventure.jwtauth=DEBUG
facebook.secret=+your facebook secret goes here+
google.secret=+your google secret goes here+

spring-boot-satellizer's People

Contributors

ortizcarlos avatar

Stargazers

 avatar

Watchers

 avatar

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.