✨ feat(auth): pkg/auth skeleton for OpenID Connect (ADR-0028 Phase B prep) (#69)
Co-authored-by: Gabriel Radureau <arcodange@gmail.com> Co-committed-by: Gabriel Radureau <arcodange@gmail.com>
This commit was merged in pull request #69.
This commit is contained in:
13
pkg/auth/oidc_test.go
Normal file
13
pkg/auth/oidc_test.go
Normal file
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user