File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,13 +79,10 @@ func (p CustomOAuthProvider) TableName() string {
7979}
8080
8181// SetClientSecret encrypts and stores the client secret using the configured
82- // database encryption settings. If encryption is disabled, the secret is
83- // stored in plaintext (temporary fallback for now)
82+ // database encryption settings. Encryption must be enabled to store client secrets.
8483func (p * CustomOAuthProvider ) SetClientSecret (secret string , dbEncryption conf.DatabaseEncryptionConfiguration ) error {
8584 if ! dbEncryption .Encrypt {
86- // Fallback: store in plaintext when encryption is not enabled.
87- p .ClientSecret = secret
88- return nil
85+ return errors .New ("database encryption must be enabled to store custom OAuth provider client secrets" )
8986 }
9087
9188 if dbEncryption .EncryptionKeyID == "" || dbEncryption .EncryptionKey == "" {
You can’t perform that action at this time.
0 commit comments