Class: PublishingPlatform::SSO::ApiAccess
- Inherits:
-
Object
- Object
- PublishingPlatform::SSO::ApiAccess
- Defined in:
- lib/publishing_platform_sso/api_access.rb
Class Method Summary collapse
Class Method Details
.api_call?(env) ⇒ 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 |