Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 06:46
    leo220yuyaodog commented #651
  • 06:33
    hsluoyz commented #651
  • 05:57
    leo220yuyaodog commented #651
  • 00:44
    hsluoyz commented #1499
  • Feb 04 19:08
    suyash5053 commented #1499
  • Feb 04 13:55
    hsluoyz edited #1521
  • Feb 04 13:54
    casbin-bot assigned #1521
  • Feb 04 13:54
    casbin-bot labeled #1521
  • Feb 04 13:54
    casbin-bot commented #1521
  • Feb 04 13:54
    hsluoyz opened #1521
  • Feb 04 13:26
    hsluoyz closed #1516
  • Feb 04 13:24
    hsluoyz commented #1520
  • Feb 04 13:19
    hsluoyz commented #1520
  • Feb 04 13:00
    OutOfEastGate commented #1520
  • Feb 04 10:20
    casbin-bot labeled #1518
  • Feb 04 10:20
    casbin-bot commented #1518
  • Feb 04 10:20

    github-actions[bot] on v1.232.0

    (compare)

  • Feb 04 10:10
    github-actions[bot] synchronize #1440
  • Feb 04 10:10

    github-actions[bot] on l10n_crowdin_action

    refactor: New Crowdin Backend t… (compare)

  • Feb 04 10:10
    github-actions[bot] synchronize #1440
hsluoyz
@hsluoyz
@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"}'
Authorization: Basic base64(clientId:secret) body {"id":"example-org/example-permission", "v0":"user.id (accesstoken.payload.id)", "v1":"example-resource", "v2":"example-action"} It return 500
hsluoyz
@hsluoyz
Hello everyone, we are now migrating to Discord, join by the link: https://discord.gg/4eZa7dMurk