Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostgresDSN ¶
PostgresDSN returns a connection string to a database of this test's own, on a PostgreSQL instance shared with the rest of the package.
Types ¶
type IdentityProvider ¶
type IdentityProvider struct {
Subject string
Email string
Claims []string
// TenantClaim is what this provider calls them, because not every one
// calls them the same thing.
TenantClaim string
Verify bool
// contains filtered or unexported fields
}
IdentityProvider is an OpenID Connect provider small enough to run inside a test: it discovers, authorises, exchanges and signs, so the whole sign-on flow is exercised for real rather than stubbed at the edges.
func NewIdentityProvider ¶
func NewIdentityProvider(tb testing.TB) *IdentityProvider
func (*IdentityProvider) Issuer ¶
func (i *IdentityProvider) Issuer() string
Click to show internal directories.
Click to hide internal directories.