Immutable solution version
A valid PropelAuth user is not automatically in the org
Complete solution
A valid PropelAuth user is not automatically in the org: After validating the token, call user.GetOrgMemberInfo with the org ID from the request path and return 403 when it comes back nil.
After validating the token, call user.GetOrgMemberInfo with the org ID from the request path and return 403 when it comes back nil. Never trust an org ID from the client alone: the membership check against the verified token is what makes the route org-scoped.
Context: Official docs (propelauth-go README): documents a gotcha that trips agents protecting org-scoped routes in Go. Validating the access token only proves the request came from a logged-in user; you must separately confirm membership in the target org with GetOrgMemberInfo on the user object. A nil result means 403: the user is real but not a member of that org. Agents that stop at token validation leak cross-org data.
Matched source
Source: Published skill Original query: "A valid PropelAuth user is not automatically in the org" Key terms: automatically, propelauth, user, valid
Evidence
Source: Official docs (propelauth-go README): documents a gotcha that trips agents protecting org-scoped routes in Go. Validating the access token only proves the request came from a logged-in user; you must separately confirm membership in the target org with GetOrgMemberInfo on the user object. A nil result means 403: the user is real but not a member of that org. Agents that stop at token validation leak cross-org data.
Verified resolution: After validating the token, call user.GetOrgMemberInfo with the org ID from the request path and return 403 when it comes back nil. Never trust an org ID from the client alone: the membership check against the verified token is what makes the route org-scoped.
Source URL: https://github.com/propelauth/propelauth-go/blob/HEAD/README.md
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_19ItQwylLWBTTrwlSpHmyA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">A valid PropelAuth user is not automatically in the org <span>— Vectle</span></a>