Coder Social home page Coder Social logo

geek-gus / firebase-spring-boot-rest-api-authentication Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gladius/firebase-spring-boot-rest-api-authentication

0.0 0.0 0.0 1.18 MB

Firebase Spring Boot Rest API Authentication

Home Page: https://thepro.io/post/firebase-authentication-for-spring-boot-rest-api/

License: MIT License

Java 62.82% Dockerfile 0.62% JavaScript 35.36% CSS 1.19%

firebase-spring-boot-rest-api-authentication's Introduction

Firebase Authentication for Spring boot License: MIT

Open with ThePro

Firebase is a backendless platform to run applications without dedicated backend. But, sometimes you may need to communicate with API of an exisiting backend or you may want a dedicated backend to perform operations that cannot be done using firebase infrastructure .

This Spring Boot Starter is perfect for such situations when you want to extend firebase's authentication menchanism with Spring Security to seamlessly create and use protected rest API's.

Configuration

  • Be sure to add the following environment variable globally or project specific run configuration environment variable GOOGLE_APPLICATION_CREDENTIALS=path_to_firebase_server_config.json

  • The starter can be configured to use firebase session as client side / strictly server side or both together.

  • Htty Only / Secure enabled Session cookies may not work as expected in development hosts (localhost, 120.0.0.1). Adding self signed ssl certificate with reverse proxied host will work perfectly fine.

  • Following application properties can edited to customize for your needs. Sample @ application.yaml

Tutorials :

UI Demo

Screenshots

Image of UI Demo Protected API Image of UI Demo Protected API ERROR

Client Side Session Demo

Nextjs application demonstrating client side firebase session. client-side-session

Server Side Session Demo

Nextjs application demonstrating server side firebase session. server-side-session

Kubernetes Deployment

Checkout the post at https://thepro.io/post/firebase-service-account-configuration-for-spring-boot-on-kubernetes

Author

๐Ÿ‘ค Gladius

  • Website: thepro.io/@/gladius
  • Github: @gladius

Show your support

Give a โญ๏ธ if this project helped you!

License

This project is licensed under the MIT License - see the LICENSE.md file for details

firebase-spring-boot-rest-api-authentication's People

Contributors

gladius 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.