Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: limit one user(not admin) session for one application by casdoor #43

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

xiao-niu-ren
Copy link

@casbin-bot
Copy link
Member

@tangyang9464 @JalinWang @imp2002 please review

SessionId []string `json:"sessionId"`
}

func addUserSession(claims *auth.Claims, sessionId string) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put all code to: https://github.com/casdoor/casdoor-go-sdk , re-use the existing code base

"github.com/casdoor/casdoor-go-sdk/auth"
)

var sessionMap = map[string]int64{}
type Session struct {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of code should be put into casdoor-go-sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants