• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
    • Products

      • Wowza ClearCaster
      • Facebook Live appliance
      • Wowza Streaming Cloud
      • Cloud streaming services
      • Wowza Streaming Engine
      • Streaming server software
      • Wowza GoCoder & SDK
      • Mobile capture and encoding app
    • Capabilities

      • CDN
      • Ultra Low Latency
      • SRT
      • Player
      • WebRTC
      • Live Transcoding
      • See All Capabilities
  • DOCS & APIS

      Docs & APIs

      • Getting Started
      • User Guides
      • Technical Articles
      • Video Tutorials
      • API & SDK Docs
  • SOLUTIONS
    • Streaming Types

      • Live Video Streaming
      • Video on Demand
      • Audio-Only Streaming
      • IP Camera Streaming
      • VR and 360° Streaming
      • Chat
    • Industries

      • Broadcast & OTT
      • Education
      • Enterprise
      • Government
      • Live Events
      • Live Sports
      • Religious Organizations
    • Streaming Solutions

      • MediaDS—Integrated Streaming Device
      • Streaming Service Providers
      • Live Mobile Broadcasting
  • PRICING
    • Wowza ClearCaster

      • Facebook Live appliance
      • Starting at $2,995
      • Add to Cart
      • Request a Demo
    • Wowza Streaming Cloud

      • Cloud streaming services
      • Starter Plan: $49/month
      • Add to Cart
      • See All Plans
    • Wowza Streaming Engine

      • Streaming server software
      • Annual Plan: $65/month
      • Add to Cart
      • See All Plans
    • Wowza GoCoder SDK

      • SDK for mobile streaming
      • Talk to a Streaming Expert
      • Contact Us
      • Free Trial
  • RESOURCES

      Resources

      • Blog
      • Case Studies
      • Webinars
      • Videos
      • Podcasts
      • Test Players
      • Developer Tools
  • SUPPORT
    • Support

      • Forums
      • Software Updates
      • Open a Support Ticket
    • Plans & Services

      • Support Plans
      • Advisory Services
      • Live Event Support
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza Developer Dojo /
  • Wowza Streaming Server Java API /
avatar image
Question by Kor Ceritor · Jan 22, 2013 at 04:15 PM · wowza streaming server java api

HTTPProvider and Basic HTTP authentication

Hi!

I'm writing a Wowza extension in a form of a custom HTTPProvider and I'm trying to use basic authorization... The problem is that when I test my REST "api" with WRONG credentials a NPE is thrown inside doHTTPAuthentication. When I supply the CORRECT credentials, doHTTPAuthentication returns TRUE, as expected. DIGEST authentication on the other hand works flawlessly.

Why do I need to use basic and not digest authentication is a matter for another discussion. :-)

Stack trace:

==> logs/wowzamediaserver_access.log <==
2013-01-22      12:24:47        CET     comment server  ERROR   500     -       java.lang.NullPointerException
        at com.wowza.wms.authentication.AuthenticateBasic.authenticateHTTPProvider(Unknown Source)
        at com.wowza.wms.http.HTTProvider2Base.doHTTPAuthentication(Unknown Source)
        at org.company.video.wms.module.RestApi.onHTTPRequest(RestApi.java:32) <- my class
        at com.wowza.wms.http.HTTPRequestAdapter.service(Unknown Source)
        at com.wowza.wms.server.ServerHandler.a(Unknown Source)
        at com.wowza.wms.server.ServerHandler.a(Unknown Source)
        at com.wowza.wms.server.ServerHandler.messageReceived(Unknown Source)
        at com.wowza.wms.server.ServerHandlerThreaded.messageReceived(Unknown Source)
        at org.apache.mina.common.support.AbstractIoFilterChain$2.messageReceived(Unknown Source)
        at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Unknown Source)
        at org.apache.mina.common.support.AbstractIoFilterChain.access$900(Unknown Source)
        at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(Unknown Source)
        at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(Unknown Source)
        at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(Unknown Source)
        at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Unknown Source)
        at org.apache.mina.common.support.AbstractIoFilterChain.access$900(Unknown Source)
        at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(Unknown Source)
        at org.apache.mina.filter.executor.ExecutorFilter.processEvent(Unknown Source)
        at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)


I'm using HTTProvider2Base.doHTTPAuthentication in this way:

[B]if (!doHTTPAuthentication(vhost, request, response)) {[/B]
Comment

People who like this

0 Show 0
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Richard Lanham · Jan 24, 2013 at 03:37 PM

You have to set the AuthenticationMethod of the HTTPProvider to "admin-basic", then restart Wowza. Then load using http url like this form

http://richard:myPwd@[wowza-address]:1935/filterName


Richard
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Kor Ceritor · Jan 28, 2013 at 09:03 AM 0
Share
You can see from the stack trace that I already did what you have suggested me.

com.wowza.wms.authentication. AuthenticateBasic.authenticateHTTPProvider
avatar image

Answer by Richard Lanham · Jan 28, 2013 at 01:35 PM

I see that too. Thanks for the report and clarification. I will forward to engineering

Richard
Comment

People who like this

0 Show 2 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Richard Lanham · Jan 28, 2013 at 02:29 PM 0
Share
It will be fixed in 3.5.1 patch 1. That will be next patch but I don't have an exact time frame.

Thanks again,

Richard
avatar image Kor Ceritor Richard Lanham · Jan 29, 2013 at 11:11 AM 0
Share
Thanks for clarifying this!
avatar image

Answer by Richard Lanham · Jan 29, 2013 at 02:47 PM

Actually this will be included in the 3.5.1 installer or the patch that upgrades to 3.5.1. These should be coming soon.

Richard
Comment

People who like this

0 Show 0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

ModuleRTMPAuthenticate.onConnect 5 Answers

Logging to a Database 27 Answers

Rest api >> wowza 4 2 Answers

How can LoopUntilLive module recognize a multi-bitrate live stream from Transcoder? 1 Answer

rtsp to rtmp from vivotek ip camer 10 Answers

Hot Topics
  • AWS Hosting
  • Mobile SDK
  • Deployment Options
  • Load Balancing
  • Content Security
Product Sign-in
  • Wowza Streaming Cloud
  • Wowza Player
Under the Hood
  • Developer Tools
  • Wowza System Status
  • Test Players
  • Developer IDE
Resellers
  • Find a Reseller
  • Reseller Portal
  • Become a Reseller
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Partners
  • Contact Us
Stay Connected
Get Monthly Newsletter
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2018 Wowza Media Systems, LLC. All rights reserved.   Terms | Privacy | Trademarks | Legal


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Forums
  • Wowza ClearCaster
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Users
  • Badges