Commit 46d51515 authored by Sascha Grossenbacher's avatar Sascha Grossenbacher Committed by Mateu Aguiló Bosch
Browse files

Issue #2999521 by e0ipso, sashi.kiran, ClassicCut, matt_paz, Berdir, esolitos,...

Issue #2999521 by e0ipso, sashi.kiran, ClassicCut, matt_paz, Berdir, esolitos, bradjones1, jupedega, solomonrothman, sebkamil, yvmarques, penyaskito, thtas: Add support for Open Id connect
parent 8f2688ca
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3,7 +3,8 @@
    "description": "The Simple OAuth module for Drupal",
    "type": "drupal-module",
    "require": {
        "league/oauth2-server": "^7.1",
        "league/oauth2-server": "^8.0",
        "steverhoades/oauth2-openid-connect-server": "^1.1",
        "drupal/consumers": "^1.2",
        "php": ">=7.0"
    },
+1 −0
Original line number Diff line number Diff line
@@ -4,3 +4,4 @@ refresh_token_expiration: 1209600
remember_clients: true
token_cron_batch_size: 0
use_implicit: false
disable_openid_connect: false
+4 −0
Original line number Diff line number Diff line
@@ -50,3 +50,7 @@ simple_oauth.settings:
      type: boolean
      label: 'Enable the implicit grant?'
      description: 'Only use the implicit grant if you understand the security implications of using it.'
    disable_openid_connect:
      type: boolean
      label: 'Disable OpenID Connect?'
      description: 'OpenID Connect will be enabled, unless this flag is active.'
+1 −2
Original line number Diff line number Diff line
name: Simple OAuth
name: Simple OAuth & OpenID Connect
type: module
description: 'The OAuth 2.0 Authorization Framework'
core: 8.x
core_version_requirement: '^8 || ^9'
package: Authentication
configure: oauth2_token.settings
+10 −0
Original line number Diff line number Diff line
@@ -106,3 +106,13 @@ function simple_oauth_update_8404() {
    // If the field has been installed by a different module, don't interfere.
  }
}

/**
 * Set default value for the flag to disable OpenID Connect.
 */
function simple_oauth_update_8501(&$sandbox) {
  $config = \Drupal::configFactory()
    ->getEditable('simple_oauth.settings');
  $config->set('disable_openid_connect', FALSE);
  $config->save();
}
Loading