Skip to content

Commit 0c7dd23

Browse files
committed
Rename SingleUserPasswordAuthenticationProvider to ConfigurableCredentialAuthenticationProvider
1 parent c0d99a1 commit 0c7dd23

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/main/kotlin/de/debuglevel/greeter/SingleUserPasswordAuthenticationProvider.kt renamed to src/main/kotlin/de/debuglevel/greeter/ConfigurableCredentialAuthenticationProvider.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import javax.inject.Singleton
1111
* Example for an AuthenticationProvider, which just checks for a single configured credential
1212
*/
1313
@Singleton
14-
class SingleUserPasswordAuthenticationProvider(
15-
@Property(name = "app.security.single-user-password-authentication.credentials.username") val username: String,
16-
@Property(name = "app.security.single-user-password-authentication.credentials.password") val password: String
14+
class ConfigurableCredentialAuthenticationProvider(
15+
@Property(name = "app.security.configurable-credential-authentication.username") val username: String,
16+
@Property(name = "app.security.configurable-credential-authentication.password") val password: String
1717
) : AuthenticationProvider {
1818
override fun authenticate(authenticationRequest: AuthenticationRequest<*, *>): Publisher<AuthenticationResponse> {
1919
if (authenticationRequest.identity == username &&

src/main/resources/application.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ app:
44
default-language: "null"
55
unknown-language: "unknown"
66
security:
7-
single-user-password-authentication:
8-
credentials:
7+
configurable-credential-authentication:
98
username: "SECRET_USERNAME"
109
password: "SECRET_PASSWORD"
1110

0 commit comments

Comments
 (0)