Parse Spring Boot Starter

Ths is a Spring Boot Starter for Parse integration

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

ca.pjer
ArtifactId

ArtifactId

parse-spring-boot-starter
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Parse Spring Boot Starter
Ths is a Spring Boot Starter for Parse integration
Project URL

Project URL

https://github.com/pierredavidbelanger/parse-spring-boot
Project Organization

Project Organization

Pivotal Software, Inc.
Source Code Management

Source Code Management

https://github.com/pierredavidbelanger/parse-spring-boot

Download parse-spring-boot-starter

How to add to project

<!-- https://jarcasting.com/artifacts/ca.pjer/parse-spring-boot-starter/ -->
<dependency>
    <groupId>ca.pjer</groupId>
    <artifactId>parse-spring-boot-starter</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/ca.pjer/parse-spring-boot-starter/
implementation 'ca.pjer:parse-spring-boot-starter:1.1.0'
// https://jarcasting.com/artifacts/ca.pjer/parse-spring-boot-starter/
implementation ("ca.pjer:parse-spring-boot-starter:1.1.0")
'ca.pjer:parse-spring-boot-starter:jar:1.1.0'
<dependency org="ca.pjer" name="parse-spring-boot-starter" rev="1.1.0">
  <artifact name="parse-spring-boot-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='ca.pjer', module='parse-spring-boot-starter', version='1.1.0')
)
libraryDependencies += "ca.pjer" % "parse-spring-boot-starter" % "1.1.0"
[ca.pjer/parse-spring-boot-starter "1.1.0"]

Dependencies

compile (4)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter jar 1.5.2.RELEASE
org.glassfish.jersey.core : jersey-client jar 2.25.1
org.glassfish.jersey.media : jersey-media-json-jackson jar 2.25.1
ca.pjer : parseclient jar 1.1.0

test (5)

Group / Artifact Type Version
junit : junit jar 4.12
org.assertj : assertj-core jar 2.6.0
org.mockito : mockito-core jar 1.10.19
org.hamcrest : hamcrest-library jar 1.3
org.springframework : spring-test jar

Project Modules

There are no modules declared in this project.

parse-spring-boot

Parse Spring Boot is a collection of starter libraries to help integrating Parse Server backend features into a Spring Boot application that will act as a client using ParseClient.

See parse-spring-boot-starter-example for a working example application integrating parse-spring-boot-starter and parse-security-spring-boot-starter.

parse-spring-boot-starter

A Starter to integrate ParseClient into a Spring Boot application.

Just include this dependency into your Spring Boot application (see example).

<dependency>
    <groupId>ca.pjer</groupId>
    <artifactId>parse-spring-boot-starter</artifactId>
    <version>1.1.0</version>
</dependency>

Then, define some properties (into your application.properties (see example):

parse.serverUri=http://localhost:1337/parse # this is the default value
parse.applicationId=MyAppId
parse.restApiKey=MyRestApiKey
parse.masterKey=MyMasterKey

Then, inject some beans (see example):

@Autowired
ca.pjer.parseclient.ParseClient parseClient;

// Injected only if `parse.applicationId` is defined
@Autowired(required = false)
ca.pjer.parseclient.Application application;

@Autowired(required = false)
@Qualifier("anonymousPerspective")
ca.pjer.parseclient.Perspective anonymousPerspective;

// Injected only if `parse.masterKey` is defined
@Autowired(required = false)
@Qualifier("masterPerspective")
ca.pjer.parseclient.Perspective masterPerspective;

parse-security-spring-boot-starter

A Starter to add Spring Security based on Parse users/session into a Spring Boot Web application.

Just include this dependency into your Spring Boot Web application (see example).

<dependency>
    <groupId>ca.pjer</groupId>
    <artifactId>parse-security-spring-boot-starter</artifactId>
    <version>1.1.0</version>
</dependency>

A couple of properties are available for customisation, but out of the box you get authentication and authorization into your app with zero config.

All URIs will requires authentication.

A login page is available at /login.

Also, you can inject a ParseSession into your Spring Web controllers methods (see example):

@RestController
public static class MainController {

    @GetMapping("/me")
    public Object me(ParseSession parseSession) {
        return parseSession;
    }
}

Versions

Version
1.1.0
1.0.0