Skip to content

Commit a9a1389

Browse files
oasiskByteBaker
authored andcommitted
Add introspection connector and workflow improvements
- Implement introspection connector and registration - Add feature to hide connectors - Update GitHub Actions workflows (CI manual, build-binary, artifacts) - Update .gitignore for build artifacts - Fix compilation issues
1 parent 5218ea5 commit a9a1389

File tree

10 files changed

+509
-9
lines changed

10 files changed

+509
-9
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@
66
/docker-compose.override.yaml
77
/var/
88
/vendor/
9+
/cmd/dex/dex.db
10+
/.vscode/launch.json
11+
/cmd/dex/__debug_bin*
12+
/examples/google/config-google.yaml

cmd/dex/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ type Config struct {
5151
// querying the storage. Cannot be specified without enabling a passwords
5252
// database.
5353
StaticPasswords []password `json:"staticPasswords"`
54+
55+
HiddenConnectors []string `json:"hiddenConnectors"`
5456
}
5557

5658
// Validate the configuration

cmd/dex/serve.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ func runServe(options serveOptions) error {
306306
Now: now,
307307
PrometheusRegistry: prometheusRegistry,
308308
HealthChecker: healthChecker,
309+
HiddenConnectors: c.HiddenConnectors,
309310
ContinueOnConnectorFailure: featureflags.ContinueOnConnectorFailure.Enabled(),
310311
}
311312
if c.Expiry.SigningKeys != "" {

connector/connector.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,8 @@ type RefreshConnector interface {
103103
type TokenIdentityConnector interface {
104104
TokenIdentity(ctx context.Context, subjectTokenType, subjectToken string) (Identity, error)
105105
}
106+
107+
// to support token introspection.
108+
type TokenIntrospectionConnector interface {
109+
IntrospectToken(ctx context.Context, tokenType, token string) (Identity, error)
110+
}

0 commit comments

Comments
 (0)