We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d75a30 commit e981bc4Copy full SHA for e981bc4
oauth2-server-identity-inmemory/src/main/java/nl/myndocs/oauth2/identity/inmemory/InMemoryIdentity.kt
@@ -16,15 +16,8 @@ class InMemoryIdentity : IdentityService {
16
}
17
18
override fun identityOf(forClient: Client, username: String): Identity? {
19
- val findConfiguration = findConfiguration(username)
20
-
21
- if (findConfiguration == null) {
22
- return null
23
- }
24
25
- return Identity(
26
- findConfiguration.username!!
27
- )
+ val findConfiguration = findConfiguration(username) ?: return null
+ return Identity(findConfiguration.username!!)
28
29
30
override fun allowedScopes(forClient: Client, identity: Identity, scopes: Set<String>) = scopes
0 commit comments