Class: PublishingPlatform::SSO::ApiAccess

Inherits:
Object
  • Object
show all
Defined in:
lib/publishing_platform_sso/api_access.rb

Class Method Summary collapse

Class Method Details

.api_call?(env) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/publishing_platform_sso/api_access.rb', line 4

def self.api_call?(env)
  env["HTTP_AUTHORIZATION"].to_s =~ /\ABearer /
end