github-actions[bot] on v1.232.0
github-actions[bot] on l10n_crowdin_action
refactor: New Crowdin Backend t… (compare)
Hello I'm confused about the Sign-Up process in Casdoor. What I do:
Bottom line. Is it possible for a user to sign up and sign in inside a specific app ? And do NOT provide access to admin console for registered users.
I appreciate link to code examples with the proper Sign UP process. I checked Casnode, but it seems to impl the default logic.
Thanks !
http://localhost:8000/login
instead of smth like http://localhost:8000/login/oauth/authorize?client_id=cb92c38bb2cd6d3366a4&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A9000%2Fauth&scope=read&state=web-console
- "81:8000"
volumes:
- ./casdoor:/conf
environment:
RUNNING_IN_DOCKER: "true"
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
}
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....
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
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 ?
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?