Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum
    @PatchMapping("/add")
    fun addUserToRole(
        @RequestParam username: String,
        @RequestParam roleName: String,
    ): Boolean {
        val role = roleService.getRole(roleName)
        val user = userService.getUser(username)
        user.roles.add(role)
        userService.updateUser(user)
        return true
    }

So I'm trying to add roles using the Java sdk in Kotlin. Is this how it's supposed to be done? I get the role and admin each and update the user with the role and use the update method in the userService. It doesn't seem to work

can you change the signup page email and phone to not require verification codes?

okay nvm I figured it out

you just had to put it in the right format in the .env file

in the spring boot integration docs

casdoor:
  endpoint: http://localhost:8000
  client-id: <client-id>
  client-secret: ***
  certificate: <certificate>
  organization-name: built-in
  application-name: app-built-in

do I put in the certificate name eg: cert-built-in?
I tried putting in the cert name and the public key but I couldn't get the method casdoorAuthService.parseJwtToken(token)
to work

I get "Cannot verify signature." error message if I put in the cert name as the certificate

and another exception if I put in the public key