Blazing Heart Reader is architected so the back-end data is available through ASP.NET Web APIs, and the web front end just uses javascript (with the help of jQuery) to consume them. This allows the data to be accessed from future applications, such as desktop or mobile apps, directly. That is, if they are autenticated - which turned out to not be possible through anything other than the web page with the way things were.

But, over the last few nights I have been working to add support for HTTP Basic Authentication, which is where your user name and password are send to the server as part of the connection process. This allows using code to access the API by passing a user name and password as part of it's connection process. I have a simple WPF test app that I made which uses RESTSharp to connect to the Blazing Heart Reader API, which now works:

To get this working, I coppied the code for IdentityBasicAuthenticationAttribute.cs and related files, and then just added the attribute to the API controllers:

Easy. Behind the scenes though, this is only possible because I'm using the Owin authentication model which bypasses the server authentication. This is important because the server only allows one type of authentication for the whole application but Owin allows you to use anything you write a filter for. It's a good thing I previously upgraded the site to ASP.NET MVC 4 to use Owin otherwise this would have been quite painful!

14 Comments

  • Rena said

    I visited various web pages but the audio feature for audio songs existing at this site is in fact superb.

  • www.juegosdemariobros.tv said

    Quality stuff, going to link on my facebook. Unrelated, but anyone suffering from diabetic complications here?
    If so, check out this great treatment guide I found.

  • retail training said

    My brother suggested I might like this web site. He was totally
    right. This post actually made my day. You can not imagine simply how much time I had spent for this info!
    Thanks!

  • home based business said

    Hey would you mind stating which blog platform you're working with?
    I'm going to start my own blog in the near future
    but I'm having a tough time deciding between BlogEngine/Wordpress/B2evolution and Drupal.

    The reason I ask is because your design and style seems different then most blogs and I'm
    looking for something completely unique.
    P.S My apologies for getting off-topic but I had to
    ask!

  • best hand spinner tricks said

    Hello! Do you know if they make any plugins to protect against hackers?

    I'm kinda paranoid about losing everything I've worked hard on. Any recommendations?

  • best e cigarette reviews said

    You could definitely see your expertise within the work you write.
    The world hopes for more passionate writers like you
    who aren't afraid to say how they believe.

    All the time follow your heart.

  • http://blog.ave40.com/ said

    I seriously love your website.. Great colors & theme. Didd you create
    this website yourself? Please reply back as I'm wanting to create my own website and would like to find out where you got this from or what the theme is called.

    Thank you!

  • Blog.Ave40.Com said

    Hello fantastic blog! Does running a blog similar to this
    take a great deal of work? I've very little understanding of computer programming but
    I had been hoping to start my own blog in the near future.
    Anyway, if you have any suggestions or techniques for new blog owners please share.
    I understand this is off subject but I just wanted to ask.
    Cheers!

  • best e cigarette apollo said

    Hello! I know this is sort of off-topic but I had to ask.
    Does managing a well-established blog such ass yours
    tazke a lot of work? I'm completely neew to operating a blpog however I do write in my journal daily.
    I'd lijke to start a bllg so I can easily share my personal experience and
    views online. Pleaae let me know iif you have any kind of suggestions or tips for new aspiring bloggers.

    Appreciate it!

  • women's vote said

    Have you ever considered writing an e-book or guest authoring on other websites?
    I have a blog based on the same subjects you discuss and would
    really like to have you share some stories/information. I know my audience would value your work.
    If you are even remotely interested, feel free to shoot me an e-mail.

  • gold vault said

    It's truly very complex in this busy life to listen news on TV, therefore I just
    use world wide web for that purpose, and obtain the latest news.

  • site www said

    Hey there! I know this is somewhat off topic but I was wondering which
    blog platform are you using for this website? I'm getting
    sick and tired of Wordpress because I've had issues with hackers and I'm
    looking at alternatives for another platform. I would be awesome if you could point me in the direction of a good platform.

  • blade runner 2049 streaming film ita said

    Blade Runner 2049 streaming film senza limiti italiano , Blade runner 2049 streaming gratis completo cinblog01, Blade runner 2049 streaming film gratis online guarda
    ora lo streaming del film in hd gratis,

    film qui -- http://film-senza-limiti.info/blade-runner-2049/

    Guarda BLADE RUNNER 2049 Film Completo Online 2017 HD,BLADE RUNNER 2049 Film Completo
    Online Gratis – Italiano HD,BLADE RUNNER 2049 vedere film completo italiano HD,BLADE
    RUNNER 2049 2017 Guarda Film Completo Online Italiano HD,[Completo] BLADE RUNNER 2049 2017 vedere film streaming italiano
    HD,BLADE RUNNER 2049 2017 Streaming Film Completo – Italiano HD,BLADE RUNNER 2049 (2017) Film Completo Online – Italiano HD,
    Guarda BLADE RUNNER 2049 Film Completo Italiano HD,Streaming BLADE RUNNER 2049
    2017 Film Completo Gratuito Italiano,Guarda film
    BLADE RUNNER 2049 completo online 2017 HD,BLADE RUNNER 2049 RapidGator, Torrent, The Pirate Bay,

Add a Comment