Skip to content

feat: add AccessContext types#6413

Open
BSFishy wants to merge 1 commit intocloudflare:mainfrom
BSFishy:add-access-types
Open

feat: add AccessContext types#6413
BSFishy wants to merge 1 commit intocloudflare:mainfrom
BSFishy:add-access-types

Conversation

@BSFishy
Copy link
Copy Markdown

@BSFishy BSFishy commented Mar 25, 2026

Adds types for Cloudflare Access integration into Workers

Signed-off-by: Matt Provost <mprovost@cloudflare.com>
@BSFishy BSFishy requested review from a team as code owners March 25, 2026 16:21
@BSFishy BSFishy requested a review from ascorbic March 25, 2026 16:21
* Represents the identity of a user authenticated via Cloudflare Access.
* This matches the result of calling /cdn-cgi/access/get-identity.
*/
type Identity = object;
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Would like to get the team's thoughts on this name. I am unfamiliar with how these types get injected into user's projects (afaiu, Env gets added globally automatically), so maybe a more descriptive name works better than Identity? Perhaps something like CfAccessIdentity?

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.

1 participant