Class: Oauth::TokensController
- Inherits:
-
Doorkeeper::TokensController
- Object
- Doorkeeper::TokensController
- Oauth::TokensController
- Defined in:
- app/controllers/oauth/tokens_controller.rb
Constant Summary
Constants included from Gitlab::Logging::JsonMetadataHelper
Gitlab::Logging::JsonMetadataHelper::JSON_METADATA_HEADERS
Constants included from Gitlab::Logging::CloudflareHelper
Gitlab::Logging::CloudflareHelper::CLOUDFLARE_CUSTOM_HEADERS
Instance Method Summary collapse
Methods included from Gitlab::InternalEventsTracking
Methods included from Gitlab::Logging::JsonMetadataHelper
Methods included from Gitlab::Logging::CloudflareHelper
#store_cloudflare_headers!, #valid_cloudflare_header?
Methods included from EnforcesTwoFactorAuthentication
#check_two_factor_requirement, #current_user_requires_two_factor?, #execute_action_for_2fa_reason, #mfa_help_page_url, #skip_two_factor?, #two_factor_authentication_required?, #two_factor_grace_period, #two_factor_grace_period_expired?, #two_factor_skippable?, #two_factor_verifier
Instance Method Details
#create ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'app/controllers/oauth/tokens_controller.rb', line 12 def create if .status == :ok track_internal_event( 'oauth_authorize_with_gitlab', user: .token.resource_owner, additional_properties: { label: server.client.present?.to_s, property: params[:grant_type] # rubocop:disable Rails/StrongParams -- This pattern is followed in the gem } ) end super end |