Skip to content

Commit a89694b

Browse files
committed
feat: return discovery document in the api response
1 parent 15a2669 commit a89694b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/models/custom_oauth_provider.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ type CustomOAuthProvider struct {
4444
Issuer *string `db:"issuer" json:"issuer,omitempty"`
4545
DiscoveryURL *string `db:"discovery_url" json:"discovery_url,omitempty"`
4646
SkipNonceCheck bool `db:"skip_nonce_check" json:"skip_nonce_check"`
47-
CachedDiscovery *OIDCDiscovery `db:"cached_discovery" json:"-"` // Internal caching, not exposed in API
48-
DiscoveryCachedAt *time.Time `db:"discovery_cached_at" json:"-"` // Internal caching, not exposed in API
47+
CachedDiscovery *OIDCDiscovery `db:"cached_discovery" json:"discovery_document,omitempty"` // Internal caching, not exposed in API
48+
DiscoveryCachedAt *time.Time `db:"discovery_cached_at" json:"-"` // Internal caching, not exposed in API
4949

5050
// OAuth2-specific fields (null for OIDC providers)
5151
AuthorizationURL *string `db:"authorization_url" json:"authorization_url,omitempty"`

0 commit comments

Comments
 (0)