SMART COSMOS Authorization Server

SMART COSMOS Authorization Server handles authentication throughout the microservice fleet

Лицензия

Лицензия

Категории

Категории

Сеть
Группа

Группа

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

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

smartcosmos-auth-server
Последняя версия

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

3.0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

SMART COSMOS Authorization Server
SMART COSMOS Authorization Server handles authentication throughout the microservice fleet
Ссылка на сайт

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

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

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

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

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

https://github.com/SMARTRACTECHNOLOGY/smartcosmos-auth-server/tree/master/

Скачать smartcosmos-auth-server

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

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

Зависимости

compile (11)

Идентификатор библиотеки Тип Версия
org.apache.httpcomponents : httpclient jar
net.smartcosmos : smartcosmos-framework jar 3.1.1
net.smartcosmos : smartcosmos-framework-monitoring jar 3.1.1
org.springframework.boot : spring-boot-starter-actuator jar
org.springframework.boot : spring-boot-starter-freemarker jar
org.springframework.boot : spring-boot-starter-security jar
org.springframework.boot : spring-boot-starter-web jar
org.springframework.cloud : spring-cloud-starter-config jar
org.springframework.cloud : spring-cloud-starter-sleuth jar
org.springframework.cloud : spring-cloud-starter-zipkin jar
org.springframework.security : spring-security-jwt jar

provided (1)

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

test (1)

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

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

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

SMART COSMOS Security: Authorization Server

Build Status
Coverage Status

The Authorization Server (Auth-Server) is designed to fit a flexible architecture that might want to use an entirely different form of authentication.

By design, there are several components:

  • The Authorization Server (this component)

  • The Client Details Service

  • The Service User Details Service

  • The User Management Server

  • The Credential Management Server

Simple way to test logging in and getting an access token:

curl localhost:9999/oauth/token \
  -d "grant_type=password" \
  -d "scope=read" \
  -d "username=user" \
  -d "password=password" \
  -u $SC_CLIENT_ID:$SC_CLIENT_PASSWORD | jq

You should get a response in this format:

{
  "access_token": "eyJhbGciOiJSUzI1NiJ9.eyJ1c2VyX25hbWUiOiJ1c2VyIiwic2NvcGUiOlsicmVhZCJdLCJhY2NvdW50X3VybiI6InVybjphY2NvdW50OnV1aWQ6NTNmNDUyYzItNWEwMS00NGZkLTk5NTYtM2VjZmY3YzMyYjMwIiwiZXhwIjoxNDY3MjYwMzI1LCJhdXRob3JpdGllcyI6WyJST0xFX1VTRVIiXSwidXNlcl91cm4iOiJ1cm46dXNlcjp1dWlkOjUzZjQ1MmMyLTVhMDEtNDRmZC05OTU2LTNlY2ZmN2MzMmIzMCIsImp0aSI6IjJmZmRmNGFmLWIyYjgtNGVmMC04M2QwLTRlMzlkOTFlMDdhNSIsImNsaWVudF9pZCI6InNtYXJ0Y29zbW9zc2VydmljZSJ9.F2HE_fYBjwkM3keolbWw_QsAJX60bVbmoEB7mPd1EM6quk-aPQCadv1HPKPbRLb6NRsCfnMNWpqYJMi9GmL-lm597QkmjPbvza9lLdZ2CNwg4EE4VkMwIYZowGbNzn705wXvgJuVga4oC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"read",
  "jti": "2ffdf4af-b2b8-4ef0-83d0-4e39d91e07a5"
}

You can verify that this is an authentic token by going to https://jwt.io/ and pasting the access_token into the Encoded section, and then putting the following public key (this is retrieved from the Application Configuration YML) into the Verify Signature section.

-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAhLD+JUbjIKXzIJECP19V
EKW5MQCFM7sIRiHeEgSh9pSpcn0W2fyDgUfZuSgWp6GCjmRaTrFwVt9zhUrOC/Nq
VyaYvV5nwqaNv02CkAMpRBWpFKcdMdx2mMjDGvklY2BIvG8X/9BWUhWyvX5Ye0Vb
MLIfcg2sLcqJQ/tpB9GAZJGitjP051KEJuOodrZTUQwrcz7cIUQGsT3jau5WjyIm
wc7WG5jExUkXMcdRIo9eQAMNfl/PpW1eb648Tymmj4C4pT5DTYIjF0p6V+TSCfaP
H7qQPYIAx4HfKd74sY/0Jom42Vml4YnNZuDQWm9Z+K79MI3GQXbXB/Rng+fAwilf
PQIDAQAB
-----END PUBLIC KEY-----

It’s recommend to start the Auth Server after startup in the other services, simply to avoid waiting on the Service Discovery refresh time.

net.smartcosmos

Smart Cosmos Solutions Inc.

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

Версия
3.0.2
3.0.1