- add AuthenticationController - add AuthenticationService - add getUserByUsername to AccountService - add findByUsername to AccountRepository - add SecurityConfiguration - set up authentication
48 lines
2.1 KiB
Markdown
48 lines
2.1 KiB
Markdown
# Hlæja Account Register
|
|
|
|
In twilight's hush, where mythic tales unfold, A ledger of legends, the bravest to behold. Each hero's name, etched in the annals of time, Their feats of strength, magic, and cunning, forever to shine. From dark forests to ancient ruins, guilds unite, Their banners waving, in the face of endless night. The Guild Codex, a sacred text of old, A testament to heroes, where courage never grows cold.
|
|
|
|
## Properties for deployment
|
|
|
|
| name | required | info |
|
|
|------------------------|:--------:|-------------------------|
|
|
| spring.profiles.active | ✓ | Spring Boot environment |
|
|
| spring.r2dbc.url | ✓ | Postgres host url |
|
|
| spring.r2dbc.username | ✓ | Postgres username |
|
|
| spring.r2dbc.password | ✗ | Postgres password |
|
|
| jwt.private-key | ✓ | JWT private key file |
|
|
|
|
*Required: ✓ can be stored as text, and ✗ need to be stored as secret.*
|
|
|
|
## Development Configuration
|
|
|
|
Run `release.sh` script from `master` branch.
|
|
|
|
## Development Information
|
|
|
|
### Private RSA Key
|
|
|
|
This service uses RAS keys to create identities for users. The private key is used here to generate identities, while the public key is used by **[Hlæja Registry API](https://github.com/swordsteel/hlaeja-registry-api)** to identify a users and accept data.
|
|
|
|
*For instructions on how to set these up, please refer to our [generate RSA key](https://github.com/swordsteel/hlaeja-development/blob/master/doc/rsa_key.md) documentation.*
|
|
|
|
### Global Setting
|
|
|
|
This services rely on a set of global settings to configure development environments. These settings, managed through Gradle properties or environment variables.
|
|
|
|
*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
|
|
|
|
```properties
|
|
repository.user=your_user
|
|
repository.token=your_token_value
|
|
```
|
|
|
|
#### Environment Variables
|
|
|
|
```properties
|
|
REPOSITORY_USER=your_user
|
|
REPOSITORY_TOKEN=your_token_value
|
|
```
|