https://kotlinlang.org logo
#javalin
Title
# javalin
j

james

12/11/2019, 11:58 AM
The piece I was missing was this:
Copy code
private val Context.userRoles: Set<ApiRole>
    get() = this.basicAuthCredentials()?.let { (username, password) ->
        userRoleMap[Pair(username, password)] ?: setOf()
    } ?: setOf()
This is helpful do you know if there are plans to build out Javalin extension for things like OAuth, SSO etc. so that consumers don’t need to implement this functionality?
t

tipsy

12/11/2019, 4:13 PM
no plans
i actively want to avoid responsibility for security
someone has published a jwt thing though
j

james

12/11/2019, 4:45 PM
Thanks for the info
t

tipsy

12/11/2019, 6:22 PM
you're very welcome
18 Views