mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 16:59:22 +02:00
authenticate: support for per-route client id and client secret (#3030)
* implement dynamic provider support * authenticate: support per-route client id and secret
This commit is contained in:
parent
99ffaf233d
commit
f9b95a276b
19 changed files with 557 additions and 183 deletions
|
@ -27,7 +27,11 @@ func NewError(status int, err error) error {
|
|||
|
||||
// Error implements the `error` interface.
|
||||
func (e *HTTPError) Error() string {
|
||||
return StatusText(e.Status) + ": " + e.Err.Error()
|
||||
str := StatusText(e.Status)
|
||||
if e.Err != nil {
|
||||
str += ": " + e.Err.Error()
|
||||
}
|
||||
return str
|
||||
}
|
||||
|
||||
// Unwrap implements the `error` Unwrap interface.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue