Commit cf9b7897 authored by James Edwards-Jones's avatar James Edwards-Jones

Use Utils::Override from Strategies::GroupSaml

parent 5f138cdd
module OmniAuth module OmniAuth
module Strategies module Strategies
class GroupSaml < SAML class GroupSaml < SAML
extend ::Gitlab::Utils::Override
option :name, 'group_saml' option :name, 'group_saml'
option :callback_path, ->(env) { callback?(env) } option :callback_path, ->(env) { callback?(env) }
override :setup_phase
def setup_phase def setup_phase
if metadata_phase? if metadata_phase?
require_discovery_token require_discovery_token
...@@ -22,6 +25,7 @@ module OmniAuth ...@@ -22,6 +25,7 @@ module OmniAuth
# Prevent access to SLO endpoints. These make less sense at # Prevent access to SLO endpoints. These make less sense at
# group level and would need additional work to securely support # group level and would need additional work to securely support
override :other_phase
def other_phase def other_phase
if metadata_phase? if metadata_phase?
super super
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment