15 Commits

Author SHA1 Message Date
1683686742 [RELEASE] - release version: 0.7.0 2025-02-07 16:51:19 +01:00
557254b406 change Account Request
- override toString dont print password
- make password nullable
2025-01-28 17:05:44 +01:00
59f0ab4c58 [RELEASE] - bump version 2025-01-02 07:09:38 +01:00
bff4d0812e [RELEASE] - release version: 0.6.0 2025-01-02 07:09:35 +01:00
d6f8af4917 add Authentication 2025-01-01 05:09:24 +01:00
c2dfd8f2cc add Account 2025-01-01 05:09:24 +01:00
e80feef083 change catalog version 2025-01-01 04:04:13 +01:00
51558d568e update README.md 2025-01-01 04:04:12 +01:00
8de493e4f6 [RELEASE] - bump version 2024-12-28 07:37:34 +01:00
e5debdf436 [RELEASE] - release version: 0.5.0 2024-12-28 07:37:31 +01:00
5f5831c4a9 update Device response to use Serializable for caching 2024-12-27 22:36:10 +01:00
8f727cc262 [RELEASE] - bump version 2024-12-10 23:47:04 +01:00
c26cad2ed4 [RELEASE] - release version: 0.4.0 2024-12-10 23:47:01 +01:00
32bfd089fd update Device response 2024-12-10 19:33:12 +01:00
b3bef7cd6d [RELEASE] - bump version 2024-11-30 18:54:53 +01:00
6 changed files with 61 additions and 18 deletions

View File

@@ -20,18 +20,22 @@ Run `release.sh` script from `master` branch.
./gradlew clean build publish
```
### Global gradle properties
### Global Settings
To authenticate with Gradle to access repositories that require authentication, you can set your user and token in the `gradle.properties` file.
This services rely on a set of global settings to configure development environments. These settings, managed through Gradle properties or environment variables.
Here's how you can do it:
*Note: For more information on global properties, please refer to our [global settings](https://github.com/swordsteel/hlaeja-development/blob/master/doc/global_settings.md) documentation.*
#### Gradle Properties
1. Open or create the `gradle.properties` file in your Gradle user home directory:
- On Unix-like systems (Linux, macOS), this directory is typically `~/.gradle/`.
- On Windows, this directory is typically `C:\Users\<YourUsername>\.gradle\`.
2. Add the following lines to the `gradle.properties` file:
```properties
repository.user=your_user
repository.token=your_token_value
```
or use environment variables `REPOSITORY_USER` and `REPOSITORY_TOKEN`
#### Environment Variables
```properties
REPOSITORY_USER=your_user
REPOSITORY_TOKEN=your_token_value
```

View File

@@ -1,3 +1,3 @@
kotlin.code.style=official
version=0.3.0
catalog=0.5.0
version=0.7.0
catalog=0.8.0

View File

@@ -0,0 +1,24 @@
package ltd.hlaeja.library.accountRegistry
import java.time.ZonedDateTime
import java.util.UUID
object Account {
data class Request(
val username: String,
val password: CharSequence?,
val enabled: Boolean,
val roles: List<String>,
) {
override fun toString(): String = "Request(username=$username, password=******, enabled=$enabled, roles=$roles)"
}
data class Response(
val id: UUID,
val timestamp: ZonedDateTime,
val enabled: Boolean,
val username: String,
val roles: List<String>,
)
}

View File

@@ -0,0 +1,12 @@
package ltd.hlaeja.library.accountRegistry
object Authentication {
data class Request(
val username: String,
val password: CharSequence,
)
data class Response(
val token: String,
)
}

View File

@@ -11,9 +11,6 @@ object Device {
data class Response(
val id: UUID,
val type: UUID,
)
data class Identity(
val identity: String,
)
}

View File

@@ -1,5 +1,6 @@
package ltd.hlaeja.library.deviceRegistry
import java.io.Serializable
import java.util.UUID
object Identity {
@@ -8,5 +9,10 @@ object Identity {
val client: UUID,
val node: UUID,
val device: UUID,
)
) : Serializable {
companion object {
@Suppress("ConstPropertyName")
private const val serialVersionUID = 1L
}
}
}