jwt-security-spring-boot-starter

Spring boot Jwt security auto configuration

Лицензия

Лицензия

Категории

Категории

Spring Boot Контейнер Микросервисы Безопасность
Группа

Группа

com.github.cobrijani
Идентификатор

Идентификатор

jwt-security-spring-boot-starter
Последняя версия

Последняя версия

0.0.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

jwt-security-spring-boot-starter
Spring boot Jwt security auto configuration
Организация-разработчик

Организация-разработчик

Pivotal Software, Inc.
Система контроля версий

Система контроля версий

https://github.com/Cobrijani/jwt-security-spring-boot-starter

Скачать jwt-security-spring-boot-starter

Как подключить последнюю версию

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

Зависимости

compile (7)

Идентификатор библиотеки Тип Версия
org.springframework.security : spring-security-data jar
org.springframework.boot : spring-boot-starter-security jar 1.5.1.RELEASE
org.springframework.boot : spring-boot-starter-web jar 1.5.1.RELEASE
org.projectlombok : lombok Необязательный jar 1.16.12
io.jsonwebtoken : jjwt jar 0.5
org.springframework.boot : spring-boot-autoconfigure jar 1.5.1.RELEASE
io.javaslang : javaslang jar 2.0.5

test (1)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot-starter-test jar 1.5.1.RELEASE

Модули Проекта

Данный проект не имеет модулей.

JWT security autoconfigure

Build Status

  • Represents Auto-configured Spring Security on Jwt based authentication for spring boot monolith applications

  • Maven:

          <dependency>
              <groupId>com.github.cobrijani</groupId>
              <artifactId>jwt-security-spring-boot-starter</artifactId>
              <version>0.0.3</version>
          </dependency>
  • Gradle

compile('com.github.cobrijani:jwt-security-spring-boot-starter:0.0.3')

To use it:

  1. Get dependency

  2. Implement project specific classes below:

  • org.springframework.security.core.userdetails.UserDetails
  • org.springframework.security.core.userdetails.UserDetailsService
  1. POST on '/api/v1/login' with request body as below
  {
      "login": "user login in db or w/e",
      
      "password": "user password",
      
      "isRememberMe": "remember me"
  }
  
  1. If 'UserDetails' and 'UserDetailsService' are successfully implement according to your project you should get something like this
   {
   "id_token": "your jwt"
   }

Версии библиотеки

Версия
0.0.3
0.0.2