Skip to content

Regex to extract username from header value #19

@jjhuff

Description

@jjhuff

I use this to handle auth from Google application proxy. Unfortunately, the header value looks like:
accounts.google.com:justin@example.com
It works fine, but it's a bit verbose.

It'd be awesome if I could specify a regex to just extract part of the value as the username like
accounts.google.com:(.*) or accounts.google.com:(.*)@example.com

Otherwise, it's working great. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions