mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-02 10:52:49 +02:00
mcp: add to route config, 401 when unauthenticated (#5578)
This commit is contained in:
parent
a10b505386
commit
e71fca76f2
6 changed files with 889 additions and 775 deletions
|
@ -665,3 +665,17 @@ func (f JWTIssuerFormat) Valid() bool {
|
|||
_, ok := knownJWTIssuerFormats[f]
|
||||
return ok
|
||||
}
|
||||
|
||||
func MCPFromPB(src *configpb.MCP) *MCP {
|
||||
if src == nil {
|
||||
return nil
|
||||
}
|
||||
return &MCP{}
|
||||
}
|
||||
|
||||
func MCPToPB(src *MCP) *configpb.MCP {
|
||||
if src == nil {
|
||||
return nil
|
||||
}
|
||||
return &configpb.MCP{}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue