+120
−0
+174
−64
+4
−12
Loading
• Migrated settings to the consumer entity; so that there is more flexiblity. • Removed the “use_implicit” setting; it’s no longer recommended by the OAuth2 spec. • Added hook_updates for installing/updating/removing BaseFields on the “consumer” and “oauth2_token” entity. • Disabled translation on BaseFields that should not be translatable on the “consumer” entity. • Introduced custom field type for referencing to OAuth2 scopes; it can reference to static or dynamic scopes dependent on the active scope provider. • Introduced custom validation constraint for the “Redirects” BaseField and using string as field type; the uri field type does not support custom URL schemes, this is the reason why string is used as field type. The validation constraint allows more than scoped in the issue, because local domains can differ alot. • Added custom validation constraint for the “oauth2_scope_reference” field type; so that non-existing scopes can’t be referenced. • The “third_party” BaseField is defined on in the consumers module; leaving it for now. • Enforcing PKCE when client is public and Authorisation Code grant type is active. • Vertical tabs don’t work properly yet with states, wrote todo to pickup it up when the following issue gets fixed: https://www.drupal.org/project/drupal/issues/1148950. • Made “scope_provider” setting disabled when there are scopes referenced in consumers. • Removed “ContainerFactoryPluginInterface” from the “Oauth2GrantBase”; not all plugins need dependency injection. • Removed Oauth2Grant plugins (and associated tests) that are no longer recommended; this way they can’t be selected anymore from the consumer entity or dynamic/static scope, this related to issue: #3261247.