Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.github.alperkurtul:spring-boot-starter-firebase-user-authentication

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.alperkurtul:spring-boot-starter-firebase-user-authentication

This library is used for managing with Firebase User and Authentication System.

  • 1.0.0.RELEASE
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

Firebase User Management and Authentication in Spring Boot

This project gives you the ability to use Firebase User Management and Authentication methods. To achieve this, you just have to add the dependency and simply use the methods in your Spring Boot application. These are the list of methods you can use in this release(1.0.0):

  • signUpWithEmailAndPassword
  • signInWithEmailAndPassword
  • deleteUserAccount
  • exchangeRefreshTokenToIdToken

How to Apply

Configuration

Put a firebase-web-api-key.txt file in the root of classpath and specify firebase-web-api-key : property in it.

firebase-web-api-key : [your-firebase-project-web-api-key]

In a @Configuration class in your application, create a @Bean for UserAuthenticationServiceImpl class.

@Configuration
public class DemoConfig {

    @Bean
    public UserAuthenticationServiceImpl userAuthenticationServiceImpl() {
        return new UserAuthenticationServiceImpl();
    }
    
}

Dependencies

Primarily, you have to add spring-boot-starter-web dependency in your Spring Boot application.

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

Then, you have to also add this dependency in your pom.xml.

<dependency>
    <groupId>com.github.alperkurtul</groupId>
    <artifactId>spring-boot-starter-firebase-user-authentication</artifactId>
    <version>1.0.0.RELEASE</version>
</dependency>

and How to Use

Just simply use methods.

@Autowired
private UserAuthenticationServiceImpl userAuthenticationServiceImpl;
FirebaseSignInSignUpResponseBean firebaseSignInSignUpResponseBean = userAuthenticationServiceImpl.signInWithEmailAndPassword("test7@test.com", "test07");

Demo

Here is a demo that I made for you. Demo

Next

I hope, I will add new features in the next. Don't be shy to send your advice to me. Take care...

FAQs

Package last updated on 17 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc