add new options to tests
This commit is contained in:
parent
84024355e2
commit
a1773a1eed
2 changed files with 9 additions and 5 deletions
|
@ -58,8 +58,12 @@ func init() {
|
|||
}
|
||||
|
||||
func newTestProvider(config *op.Config) op.OpenIDProvider {
|
||||
provider, err := op.NewOpenIDProvider(testIssuer, config,
|
||||
storage.NewStorage(storage.NewUserStore(testIssuer)), op.WithAllowInsecure(),
|
||||
storage := storage.NewStorage(storage.NewUserStore(testIssuer))
|
||||
keySet := &op.OpenIDKeySet{storage}
|
||||
provider, err := op.NewOpenIDProvider(testIssuer, config, storage,
|
||||
op.WithAllowInsecure(),
|
||||
op.WithAccessTokenKeySet(keySet),
|
||||
op.WithIDTokenHintKeySet(keySet),
|
||||
)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue