mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-03 20:36:03 +02:00
23 lines
557 B
Go
23 lines
557 B
Go
package azure
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
|
|
"github.com/pomerium/pomerium/pkg/identity/oauth"
|
|
)
|
|
|
|
func TestAuthCodeOptions(t *testing.T) {
|
|
var options oauth.Options
|
|
p, err := New(context.Background(), &options)
|
|
require.NoError(t, err)
|
|
assert.Equal(t, defaultAuthCodeOptions, p.AuthCodeOptions)
|
|
|
|
options.AuthCodeOptions = map[string]string{}
|
|
p, err = New(context.Background(), &options)
|
|
require.NoError(t, err)
|
|
assert.Equal(t, map[string]string{}, p.AuthCodeOptions)
|
|
}
|