FusionAuth Spring Security

An OpenID Connect implementation in Spring Security that may be used with FusionAuth.

License

License

Categories

Categories

Security
GroupId

GroupId

io.fusionauth
ArtifactId

ArtifactId

fusionauth-spring-security
Last Version

Last Version

1.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

FusionAuth Spring Security
An OpenID Connect implementation in Spring Security that may be used with FusionAuth.
Project URL

Project URL

https://github.com/FusionAuth/fusionauth-spring-security
Source Code Management

Source Code Management

https://github.com/fusionauth/fusionauth-spring-security

Download fusionauth-spring-security

How to add to project

<!-- https://jarcasting.com/artifacts/io.fusionauth/fusionauth-spring-security/ -->
<dependency>
    <groupId>io.fusionauth</groupId>
    <artifactId>fusionauth-spring-security</artifactId>
    <version>1.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/io.fusionauth/fusionauth-spring-security/
implementation 'io.fusionauth:fusionauth-spring-security:1.0.5'
// https://jarcasting.com/artifacts/io.fusionauth/fusionauth-spring-security/
implementation ("io.fusionauth:fusionauth-spring-security:1.0.5")
'io.fusionauth:fusionauth-spring-security:jar:1.0.5'
<dependency org="io.fusionauth" name="fusionauth-spring-security" rev="1.0.5">
  <artifact name="fusionauth-spring-security" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.fusionauth', module='fusionauth-spring-security', version='1.0.5')
)
libraryDependencies += "io.fusionauth" % "fusionauth-spring-security" % "1.0.5"
[io.fusionauth/fusionauth-spring-security "1.0.5"]

Dependencies

compile (4)

Group / Artifact Type Version
org.springframework.security.oauth : spring-security-oauth2 jar 2.3.5.RELEASE
org.springframework : spring-web jar 5.1.1.RELEASE
com.fasterxml.jackson.core : jackson-databind jar 2.10.3
javax.servlet : javax.servlet-api jar 3.1.0

Project Modules

There are no modules declared in this project.

FusionAuth Spring Security

This library provides an OpenID Connect implementation for FusionAuth and Spring Security.

Maven

<dependency>
  <groupId>io.fusionauth</groupId>
  <artifactId>fusionauth-spring-security</artifactId>
  <version>1.0.5</version>
</dependency>

Use our Example to get going and read through this tutorial to understand more about using Spring Security with FusionAuth.

If you encounter an issue with this library please open an Issue on this project, or if you get stuck integrating FusionAuth in your application open an issue here https://github.com/FusionAuth/fusionauth-issues/issues.

Configuration

Example configuration where the base URL of FusionAuth is login.piedpiper.com and the Spring application is running on port 8081.

# Copy this file to application.properties and fill in the clientId and clientSecret
server.port=8081
fusionAuth.clientId=<your client_id>
fusionAuth.clientSecret=<your client_secret>
fusionAuth.accessTokenUri=https://login.piedpiper.com/oauth2/token
fusionAuth.userAuthorizationUri=https://login.piedpiper.com/oauth2/authorize
fusionAuth.userInfoUri=https://login.piedpiper.com/oauth2/userinfo
fusionAuth.redirectUri=http://localhost:8081/login

License

Some portions of this code were forked/based on the code available here: https://github.com/eugenp/tutorials which are licensed under MIT. The full license is available under LICENSE.

io.fusionauth

FusionAuth

Best auth solution built for developers by developers

Versions

Version
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0