I am trying to use swagger to do get-user, but got this in return:
iam-dev:GetOwnerAndNameFromId() error, wrong token count for ID:
https://door.casdoor.com/swagger/ From casdoor api doc I don't see any api like Enforce of Casbin to check permission. Which api I need to use?
@hsluoyz I still don't know how to do it. :(
Hi I am receiving an error response "securecookie: the value is too long" when saving the session cookie in my gin application, how do I work around this issue?
func SetSessionClaims(c *gin.Context, claims *auth.Claims) {
session := sessions.Default(c)
if claims == nil {
session.Delete("user")
return
}
session.Set("user", *claims)
if err := session.Save(); err != nil {
panic(err)
}
}
after searching the web, it seems to be related to gorilla sessions as seen auth0-samples/auth0-golang-web-app#4
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"