SMART COSMOS RDAO for User Details

REST Controller for hooking into the DAO implementations

Лицензия

Лицензия

Категории

Категории

Сеть
Группа

Группа

net.smartcosmos
Идентификатор

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

smartcosmos-user-details
Последняя версия

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

0.0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

SMART COSMOS RDAO for User Details
REST Controller for hooking into the DAO implementations
Ссылка на сайт

Ссылка на сайт

http://smartcosmos.net/smartcosmos-user-details
Организация-разработчик

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

Smartrac Technology Fletcher, Inc.
Система контроля версий

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

https://github.com/SMARTRACTECHNOLOGY/smartcosmos-user-details/tree/master/

Скачать smartcosmos-user-details

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

<!-- https://jarcasting.com/artifacts/net.smartcosmos/smartcosmos-user-details/ -->
<dependency>
    <groupId>net.smartcosmos</groupId>
    <artifactId>smartcosmos-user-details</artifactId>
    <version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/net.smartcosmos/smartcosmos-user-details/
implementation 'net.smartcosmos:smartcosmos-user-details:0.0.2'
// https://jarcasting.com/artifacts/net.smartcosmos/smartcosmos-user-details/
implementation ("net.smartcosmos:smartcosmos-user-details:0.0.2")
'net.smartcosmos:smartcosmos-user-details:jar:0.0.2'
<dependency org="net.smartcosmos" name="smartcosmos-user-details" rev="0.0.2">
  <artifact name="smartcosmos-user-details" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.smartcosmos', module='smartcosmos-user-details', version='0.0.2')
)
libraryDependencies += "net.smartcosmos" % "smartcosmos-user-details" % "0.0.2"
[net.smartcosmos/smartcosmos-user-details "0.0.2"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
com.fasterxml.jackson.core : jackson-annotations jar
net.smartcosmos : smartcosmos-framework jar 3.1.1
org.springframework.security : spring-security-core jar

provided (3)

Идентификатор библиотеки Тип Версия
org.hibernate : hibernate-validator jar
org.projectlombok : lombok jar
org.springframework : spring-web jar

test (8)

Идентификатор библиотеки Тип Версия
com.fasterxml.jackson.core : jackson-databind jar
javax.el : javax.el-api jar 2.2.5
org.json : json jar
com.jayway.jsonpath : json-path jar
com.jayway.jsonpath : json-path-assert jar
junit : junit jar
org.springframework.boot : spring-boot-starter-test jar
org.springframework.security : spring-security-test jar

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

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

SMART COSMOS User Details

Build Status

The SMART COSMOS User Details library provides the common /authenticate endpoint used by the Auth Server to retrieve user details for token generation, and also includes the corresponding request and response models.

In addition, it includes a default implementation of AuthenticateUserService which is available via auto-configuration.

REST API

Available methods

JSON Fields

Field Format Default Required Description

name

Username

yes

credentials

User password

yes

API Endpoints

Authenticate - POST /authenticate

Depending on the actual application configuration, this endpoint may require authentication.

POST /authenticate
{
    "name": "alice@example.com",
    "credentials": "Passw0rd",
    "details": {
        "grantType": "password",
        "scope": "read",
        "username": "alice@example.com"
    },
    "authorities": [],
    "authenticated": false,
    "principal": "alice@example.com"
}
Response
200 OK
{
   "authorities" : [
      "https://authorities.smartcosmos.net/things/read"
   ],
   "tenantUrn" : "urn:account:uuid:53f452c2-5a01-44fd-9956-3ecff7c32b30",
   "userUrn" : "urn:user:uuid:53f452c2-5a01-44fd-9956-3ecff7c32b30",
   "name" : "alice@example.com",
   "passwordHash" : ""
}
400 Bad Request
{
   "code" : 1,
   "message" : "Invalid username or password"
}
401 Unauthorized
net.smartcosmos

Smart Cosmos Solutions Inc.

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

Версия
0.0.2
0.0.1