mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 08:19:23 +02:00
authorize: add authN validation, additional tests (#761)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
parent
9d7ef85687
commit
829280c73c
3 changed files with 160 additions and 3 deletions
|
@ -24,7 +24,10 @@ func TestNew(t *testing.T) {
|
|||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
o := config.Options{SharedKey: tt.SharedKey, Policies: tt.Policies}
|
||||
o := config.Options{
|
||||
AuthenticateURL: mustParseURL("https://authN.example.com"),
|
||||
SharedKey: tt.SharedKey,
|
||||
Policies: tt.Policies}
|
||||
if tt.name == "empty options" {
|
||||
o = config.Options{}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue