Co-authored-by: Gabriel Radureau <arcodange@gmail.com> Co-committed-by: Gabriel Radureau <arcodange@gmail.com>
14 lines
303 B
Go
14 lines
303 B
Go
package auth
|
|
|
|
import "testing"
|
|
|
|
func TestNewOIDCClient(t *testing.T) {
|
|
c := NewOIDCClient("https://example.com", "client_id", "client_secret")
|
|
if c == nil {
|
|
t.Fatal("NewOIDCClient returned nil")
|
|
}
|
|
if c.issuerURL != "https://example.com" {
|
|
t.Errorf("issuerURL not set: got %q", c.issuerURL)
|
|
}
|
|
}
|