Skip to content

Commit

Permalink
feat: remove WalletInitiatedAuthFlowSupported from .well-known response
Browse files Browse the repository at this point in the history
Signed-off-by: Mykhailo Sizov <[email protected]>
  • Loading branch information
mishasizov-SK committed Sep 29, 2023
1 parent acda2df commit a1f1515
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions docs/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -805,9 +805,6 @@ components:
pre-authorized_grant_anonymous_access_supported:
type: boolean
description: JSON Boolean indicating whether the issuer accepts a Token Request with a Pre-Authorized Code but without a client id. The default is false.
wallet_initiated_auth_flow_supported:
type: boolean
description: JSON Boolean indicating whether the issuer profile supports wallet initiated flow in OIDC4CI. The default is false.
credential_issuer:
type: string
description: The Credential Issuer's identifier.
Expand Down
3 changes: 0 additions & 3 deletions pkg/restapi/v1/issuer/openapi.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pkg/service/wellknown/provider/wellknown_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ func (s *Service) getOpenIDIssuerConfig(issuerProfile *profileapi.Issuer) *issue
final.GrantTypesSupported = issuerProfile.OIDCConfig.GrantTypesSupported
final.ScopesSupported = issuerProfile.OIDCConfig.ScopesSupported
final.PreAuthorizedGrantAnonymousAccessSupported = issuerProfile.OIDCConfig.PreAuthorizedGrantAnonymousAccessSupported
final.WalletInitiatedAuthFlowSupported = issuerProfile.OIDCConfig.WalletInitiatedAuthFlowSupported

if issuerProfile.OIDCConfig.EnableDynamicClientRegistration {
regURL, _ := url.JoinPath(host, "oidc", issuerProfile.ID, issuerProfile.Version, "register")
Expand Down
2 changes: 0 additions & 2 deletions pkg/service/wellknown/provider/wellknown_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ func checkWellKnownOpenIDIssuerConfiguration(
assert.Equal(t, []string{"grantType1", "grantType2"}, res.GrantTypesSupported)
assert.Equal(t, []string{"scope1", "scope1"}, res.ScopesSupported)
assert.True(t, res.PreAuthorizedGrantAnonymousAccessSupported)
assert.True(t, res.WalletInitiatedAuthFlowSupported)

if includedClientRegistration {
assert.Equal(t,
Expand All @@ -225,7 +224,6 @@ func checkWellKnownOpenIDIssuerConfiguration(
assert.Nil(t, res.GrantTypesSupported)
assert.Nil(t, res.ScopesSupported)
assert.False(t, res.PreAuthorizedGrantAnonymousAccessSupported)
assert.False(t, res.WalletInitiatedAuthFlowSupported)
assert.Nil(t, res.RegistrationEndpoint)
}
}
Expand Down

0 comments on commit a1f1515

Please sign in to comment.