Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrFlick72 committed Nov 23, 2024
1 parent 0b58f8d commit bcb22c0
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Right now it is based, as said before to the latest version on spring oauth2/ope
- Post login flow
- force to reset password
- back/front channel logout
- management api: custom actuator endpoint for more details [look here](local-environment%2Fmanagement.md)

**Storage:**

Expand Down
15 changes: 15 additions & 0 deletions docs/management.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Management

Custom Actuator Endpoint

## Clean Database Entry with TTL

Actuator Clean Database enabled for database profile activated

*URI:* ```Post /actuator/database-clean-up```

*Request:* Empty request body

*Response Status:* ```204 NoContent```

```
5 changes: 0 additions & 5 deletions local-environment/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ endSessionWithoutDiscovery: true
oidcEndSessionUrl: ${vauthenticator.host}/oidc/logout
auth.oidcIss: ${vauthenticator.host}

scheduled:
database-cleanup:
lock-ttl: 30000
cron: "0 * * * * *"

event:
consumer:
enable:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.vauthenticator.server.job
package com.vauthenticator.server.management

import org.slf4j.LoggerFactory
import org.springframework.context.annotation.Bean
Expand Down Expand Up @@ -54,7 +54,7 @@ class DatabaseTtlEntryCleanJob(
}


@Profile("!kms")
@Profile("database")
@Configuration(proxyBeanMethods = false)
class DatabaseTtlEntryCleanJobConfig() {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.vauthenticator.server.job
package com.vauthenticator.server.management

import org.springframework.boot.actuate.endpoint.annotation.Endpoint
import org.springframework.boot.actuate.endpoint.annotation.WriteOperation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.vauthenticator.server.job
package com.vauthenticator.server.management

import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.vauthenticator.server.keys.adapter.jdbc.JdbcKeyStorage
Expand Down

0 comments on commit bcb22c0

Please sign in to comment.