Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 28 20:19
    xiao-niu-ren synchronize #1494
  • Jan 28 11:32
    ev1lQuark edited #1484
  • Jan 28 11:30
    ev1lQuark synchronize #1484
  • Jan 27 19:17
    GyanPrakashRaj commented #1496
  • Jan 27 17:00
    xiao-niu-ren synchronize #1494
  • Jan 27 16:24
    hezean commented #1490
  • Jan 27 16:10
    xiao-niu-ren synchronize #1494
  • Jan 27 15:34
    xiao-niu-ren synchronize #1494
  • Jan 27 15:10
    hsluoyz labeled #1499
  • Jan 27 15:10
    hsluoyz unlabeled #1499
  • Jan 27 15:10
    casbin-bot commented #1499
  • Jan 27 15:10
    casbin-bot assigned #1499
  • Jan 27 15:10
    casbin-bot labeled #1499
  • Jan 27 15:10
    hsluoyz opened #1499
  • Jan 27 14:50
    hsluoyz labeled #1498
  • Jan 27 14:50
    hsluoyz unlabeled #1498
  • Jan 27 14:47
    casbin-bot assigned #1498
  • Jan 27 14:47
    casbin-bot labeled #1498
  • Jan 27 14:47
    casbin-bot commented #1498
  • Jan 27 14:47
    hsluoyz opened #1498
billyhu
@billyhu
I am investigation on casdoor and keycloak, could I integrate both services - keycloak for IAM and casdoor for RBAC?
hsluoyz
@hsluoyz
@tetra12 it should redirect to the app's login page, if not, please raise a bug
@billyhu why not use Casdoor's IAM together? Casdoor's IAM has all functionalities as keycloak
2 replies
tetra12
@tetra12
@hsluoyz I confirm that. Switched from KC to Casdoor recently. Few things in Casdoor do have rough edges (like Sign UP), but resource efficiency, speed and ease of use are way higher
Thambolo
@Thambolo
image.png
May I know what ranking is? (user model)
Nover
@nover:m.nov.re
[m]
Is there anyone use casdoor for Outline (wiki)? I use it but get error "An email field was not returned in the profile parameter".
hsluoyz
@hsluoyz
@nover:m.nov.re plz create a github issue, with all details, we will fix this
1 reply
@Thambolo it's an integer, can be used like user activity or score ranking, or can be anything else
BaiShaojie123123
@BaiShaojie123123
I don't know what openid is in thegiea configuration, where does this parameter value come from?
Krithika3
@Krithika3
HI I am new to this portal, I am trying to setup authentication on an application that could be opensourced, and uses gin server in the backend
is casdoor a good choice to just use for the backend?
hsluoyz
@hsluoyz
@BaiShaojie123123 what application do you use? What's "thegiea"?
@Krithika3 you can use Casdoor RESTful API (the backend) only. Casdoor is based on React + Go, so you have full set of APIs to do the exact the same thing as Casdoor's only web UI
own web UI
Ehsan Zarei
@ezarei88_gitlab
hi im run casdoor with docker when login error "Failed to log in: unexpected end of JSON input"
restart: always
entrypoint: /bin/sh -c './server --createDatabase=true'
image: casbin/casdoor:latest
container_name: 'casdoor'
ports:
  - "81:8000"    
volumes:      
  - ./casdoor:/conf 
environment:
  RUNNING_IN_DOCKER: "true"   
please help me
hsluoyz
@hsluoyz
@ezarei88_gitlab state your version and create a github issue
WFish
@WarlockFish
how to set sqlite3
图片.png
hsluoyz
@hsluoyz
@WarlockFish relied your github issue
Thambolo
@Thambolo
Hi, I am trying to send a request to my casdoor server for "/api/set-password" because its unavailable in the casdoor go-sdk. How can I send post requests? currently my code is:
func GlobalUserSetPasswd(owner string, name string, oldPasswd string, newPasswd string) (ok bool, err error) {

    formData := url.Values{
        "userOwner":   {owner},
        "userName":    {name},
        "oldPassword": {oldPasswd},
        "newPassword": {newPasswd},
    }


    res, err := http.PostForm(fmt.Sprintf("%s/api/set-password", CasdoorEndpoint), formData)

    if err != nil {
        log.Panicln(err)
    }

    defer res.Body.Close()
    body, err := ioutil.ReadAll(res.Body)

    if err != nil {
        log.Panicln(err)
    }

    fmt.Printf("%s\n", string(body))

    return true, nil
}
i'm getting "please login first" in the response
hsluoyz
@hsluoyz
@Thambolo plz create an issue at: https://github.com/casdoor/casdoor-go-sdk/issues
the maintainers will add it to the SDK for you
Fernando López Guevara
@fernandolguevara:matrix.org
[m]
Hello! just sent a PR adding support to min.io casdoor/casdoor#1037
Thambolo
@Thambolo
@hsluoyz cool thanks!
Kint0ki
@Kint0ki
@hsluoyz Could you please reopen casdoor/casdoor#1065?
Alexandr Belyakov
@mozomig
Hello, how i can set custom claim for jwt generated casdoor?
hsluoyz
@hsluoyz
@mozomig plz create a github issue to provide more details
VaiTon
@vaiton:matrix.org
[m]
Hello everybody! Is there a specific place to report a security vulnerability for casdoor?
1 reply
Stefan Wüthrich
@stefanwuthrich

Hi
I'm exited with this project, but have a problem. When I run go run main.go first time after cloning source and adjust app.conf to use postres, all works fine (back and front)
but trying to run it a second time i get

https://gcdnb.pbrd.co/images/d4PfwHOfrZNX.png?o=1

I already tried to delete the tmp files and database. but only way to get it running is delete source, clone, and start from there....

hsluoyz
@hsluoyz
@stefanwuthrich what's your OS and version? Create an issue at Github
Sanjay Patel
@ssoeurope_twitter

Hello,
Is there any possibility to manage roles, permission and assign to user via go or java SDK ?
I have tried to create user with role (manually created in UI), user has been created successfully
but i can't see roles assigned to user e.g. roles seems to be ignored.

Thanks

hsluoyz
@hsluoyz
@ssoeurope_twitter call the Role API: https://door.casdoor.com/swagger/#/Role%20API
Salim Alami
@celrenheit

Hello, I am wondering how to design a usecase based around feature flags around apikeys. Typically, if we have superadmin users who can create apikeys and each apikey can have a list of feature hierarchy that can be enabled.
For exemple:

apikeyA can access:
  REST api (all sub-features)
  GRPC api (just subset)
    foo
    bar
apikeyB can access:
  REST api (just a subset)
    baz
  GRPC api (all)

How would you model something like this using casdoor ?

hsluoyz
@hsluoyz
@celrenheit does this relate to a Casdoor specific feature?
boris-donchev
@boris-donchev

Hey casdoor community,

I learned today about the init_data.json and have create one for my app.

I want to add the models too, but I don't seem to be able to. I also don't see them here: https://github.com/casdoor/casdoor/blob/master/init_data.json.template or here: https://casdoor.org/de/docs/deployment/data-initialization#file-details

Are they not included?

2 replies
boris-donchev
@boris-donchev

Hey casdoor community,

I have another question concerning the JWT tokens. Currently every field from the user table is included inside the token, which makes the token rather large. Is there a way to reduce the token size to only fit fields that are used?

1 reply
co7e
@co7e
Hi, I can't spot any sort of feature to allow user account lockout after n login attempts. I also couldn't spot any entry in Github Issues. This is an essential feature for our use case and I'd be quite surprised if this isn't a feature, so I just want to check I'm not missing it, please?
3 replies
Precious Aghulor
@General-Aussie
Hello, i'm new to casdoor. I want to implement casdoor cpp sdk for an app for IMAP. But i can't really see any detailed documentation on how to go about it. Can anyone help me out?
spacecowboy8
@spacecowboy8:matrix.org
[m]

I'm trying out casdoor with the pre-built docker image, and none of the images that casdoor is using for the interface are loading, and don't appear to be in the docker image. In addition, I don't see the images in the github repo, and the Dockerfile appears to basically be pulling the /web folder from github into the docker image, which doesn't contain the UI images.

Any chance this can be fixed?

hsluoyz
@hsluoyz
@spacecowboy8:matrix.org can you provide the URL for the broken images?
spacecowboy8
@spacecowboy8:matrix.org
[m]

all the images are broken, for example: /img/casdoor-logo_1185x256.png and /img/organizations.png

I don't see any image files in the docker image

spacecowboy8
@spacecowboy8:matrix.org
[m]
are you all able to confirm the problem I'm seeing, or is it just on my end?
hsluoyz
@hsluoyz
@spacecowboy8:matrix.org can you provide a full URL about one broken image, and provide the screenshot of the response of your Chrome F12 debug window?
RomenMark
@RomenMark
i have some question about Exposed Casbin APIs. I post 'http://localhost:8000/api/enforce' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic client_id_and_secret' \
--data-raw '{"id":"example-org/example-permission", "v0":"example-org/example-user", "v1":"example-resource", "v2":"example-action"}'