Skip to content

auth tool for get user info form context XtKeelAuth - #28

Open
uptutu wants to merge 2 commits into
tkeel-io:mainfrom
uptutu:feat/authuser
Open

auth tool for get user info form context XtKeelAuth#28
uptutu wants to merge 2 commits into
tkeel-io:mainfrom
uptutu:feat/authuser

Conversation

@uptutu

@uptutu uptutu commented Mar 18, 2022

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread auth/auth.go
return u, err
}
u.ID = q.Get("user")
u.Role = q.Get("role")

@OdysseusC OdysseusC Mar 18, 2022

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
u.Role = q.Get("role")
u.Role = q.Get("role")
u.Tenant = q.Get("tenant")

Comment thread auth/auth.go Outdated

type User struct {
ID string `json:"id"`
Role string `json:"role"`

@OdysseusC OdysseusC Mar 18, 2022

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Role string `json:"role"`
Role string `json:"role"`
Tenant string `json:"tenant"`

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done.

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.

2 participants