SMART COSMOS DAO for Tenant Entities

Devkit implementation of tenant management for SMART COSMOS Tenants

License

License

Categories

Categories

Net
GroupId

GroupId

net.smartcosmos
ArtifactId

ArtifactId

smartcosmos-edge-user-devkit
Last Version

Last Version

3.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

SMART COSMOS DAO for Tenant Entities
Devkit implementation of tenant management for SMART COSMOS Tenants
Project URL

Project URL

http://smartcosmos.net/smartcosmos-edge-user-devkit
Project Organization

Project Organization

Smartrac Technology Fletcher, Inc.
Source Code Management

Source Code Management

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

Download smartcosmos-edge-user-devkit

How to add to project

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

Dependencies

compile (7)

Group / Artifact Type Version
org.mariadb.jdbc : mariadb-java-client jar 1.4.3
net.smartcosmos : smartcosmos-framework jar 3.0.0
net.smartcosmos : smartcosmos-user-entity-devkit jar 3.0.0
org.springframework.boot : spring-boot-starter-data-jpa jar
org.springframework.boot : spring-boot-starter-validation jar
org.springframework.cloud : spring-cloud-security jar
org.springframework.cloud : spring-cloud-starter-oauth2 jar

provided (2)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.16.6
com.querydsl : querydsl-apt jar

test (9)

Group / Artifact Type Version
com.h2database : h2 jar
org.hamcrest : hamcrest-core jar
org.json : json jar
com.jayway.jsonpath : json-path jar
com.jayway.jsonpath : json-path-assert jar
org.mapstruct : mapstruct jar 1.0.0.Final
net.smartcosmos : smartcosmos-framework-test jar 3.0.0
org.springframework.boot : spring-boot-starter-test jar
com.jayway.restassured : spring-mock-mvc jar

Project Modules

There are no modules declared in this project.

REST Implementations for User Management Edge Microservice

Build Status

The SMART COSMOS User Management (DevKit) API provides an implementation of SMART COSMOS Tenants, Users, Roles, and Authorities suitable for testing and development. While this API and the backing code may be useful as a template for a production-quality implementation of these SMART COSMOS metaphors, it is in no way intended for production use. From the SMART COSMOS DevKit documentation:

Note
SMART COSMOS DevKit is designed for learning, testing, and evaluation of the SMART COSMOS platform. It is not intended for production use, and it is inherently insecure due to its reliance on a JKS key pair for which the secret key is publicly available and cannot be replaced, and its use of the primary Devkit database as a store for user and account data. To establish a secure, production-ready SMART COSMOS environment, consult your SMARTRAC Technology, Inc. customer representative.

A Note About Tenants, Users, Roles, and Authorities

SMART COSMOS Objects has been designed from the outset to support multi-tenancy. A Tenant has one or more Users (a default user with the Admin Role is created as part of any Tenant creation), and a User has one or more Roles. Each Role contains zero or more Authorities, and these are the Authorities referred to below.

The SMART COSMOS DevKit creates two Roles by default: Admin and User. Both Roles contain all of the authorities listed below; the difference between the two Roles is that a User with the Admin Role can create and edit Users.

The developer can customize Roles and Authorities as needed, but the Authorities listed in the API documentation are absolutely required by any User to execute the relevant CRUD operations.

API Documentation

For detailed information on the SMART COSMOS Metadata API, please consult the API document.

Next Steps

To learn more about SMART COSMOS, have a look at SMART COSMOS Getting Started Guide.

Code and documentation copyright 2016 Smartrac Technology Fletcher, Inc. Code released under Apache 2.0 License.

net.smartcosmos

Smart Cosmos Solutions Inc.

Versions

Version
3.0.0