Giter VIP home page Giter VIP logo

pbs-passport-authenticate's People

Contributors

pineros avatar santalone avatar tamw-wnet avatar wongb-wnet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pbs-passport-authenticate's Issues

Activation code lookup should be configurable

Noted that there was a hard-coded link to a page that depends on a separate custom WNET-specific plugin to do member activation code lookups on the userinfo.php template. I've added conditionality so that link and text go to PBS's member lookup tool if the WNET-specific plugin isn't there, in commits 2cdef79 and 46d20f1 . However, the member lookup link should be configurable, in a plugin setting.

jQuery error on page load

When using shortcode the button initially appears when the page loads and then disappears with the following error in the console:

Uncaught TypeError: Cannot read property 'status' of undefined
at updateUserLoginStatusArray (jquery.pids.js?ver=0.2.5.1:120)
at Object.success (jquery.pids.js?ver=0.2.5.1:95)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at y (jquery.js?ver=1.12.4:4)
at XMLHttpRequest.c (jquery.js?ver=1.12.4:4)
updateUserLoginStatusArray @ jquery.pids.js?ver=0.2.5.1:120
success @ jquery.pids.js?ver=0.2.5.1:95
i @ jquery.js?ver=1.12.4:2
fireWith @ jquery.js?ver=1.12.4:2
y @ jquery.js?ver=1.12.4:4
c @ jquery.js?ver=1.12.4:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1.12.4:4
ajax @ jquery.js?ver=1.12.4:4
retrievePBSLoginInfoViaAJAX @ jquery.pids.js?ver=0.2.5.1:88
checkPBSLogin @ jquery.pids.js?ver=0.2.5.1:83
(anonymous) @ jquery.pids.js?ver=0.2.5.1:243
i @ jquery.js?ver=1.12.4:2
fireWith @ jquery.js?ver=1.12.4:2
ready @ jquery.js?ver=1.12.4:2
K @ jquery.js?ver=1.12.4:2

possible redirect loop in odd login state case

Noted that if there's a hangup in javascript execution (external script resource taking a long time to load, etc), and the user who is logged in attempts to visit the login form, there is a possibility of the user getting bounced back and forth rapidly between the user info page and the login form page.

This is because the cookie/redirect check on the login form is on the client site, but the cookie/redirect check on the user info page is on the server side.

Should be easy to clean up.

Undefined vars preventing passport video

In the file build-passport-player.php, on line 26, are two undefined vars, PASSPORT_ENABLED and $coveWindow. They appear to be placeholders for if the user is a member or not, but are never actually set anywhere.

No example code for embedding a passport video

Documentation says there'll be an example of embedding a passport video.

It would look something like this:

`


Access to this video is a benefit for members of STATION

    <div class='pp-join-now'><a href='#' class='pbs_passport_authenticate_join button'>JOIN NOW TO WATCH</a></div>
    <div class='pp-label'>with</div>
    <div class='pp-logo'><img src='$passportlogo.png' alt='STATION Passport'/></div>

    <div class='pp-label'>Already a member?</div>
    <div class='pp-sign-in pbs_passport_authenticate cf'><button class='launch'>SIGN IN NOW</button></div>
    <div class='pp-learn-more'><a href='/passport/'>Learn more</a> about STATION Passport</div>
  </div></div>
`

and then you'd have some jQuery, like so

return function() { if ($("#passportcoveplayer[data-window]")[0]){ var active = 0; var videoWindow = $('#passportcoveplayer').data('window'); var videoID = $('#passportcoveplayer').data('media'); if (videoWindow != 'public' && videoWindow != '') { /* do nothing, not logged in, passport video */ /* jquery.pids.js takes over for passport enabled videos */ } else { $("#passportcoveplayer").html('<div class="embed-container video-wrap"><iframe id="partnerPlayer" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" src="http://player.pbs.org/widget/partnerplayer/'+videoID+'/?chapterbar=false"></iframe></div>'); } } }

Possible to get History of User after Logging In

Hi William,

Our station was looking at a 'continue watching' feature for logged in users. Do you know, or have you explored, a possibility for this?

I don't think the MVault API allows for this, but I thought I would check and see if you knew of any options.

PS: My Apologies for submitting this as an 'issue', but wasn't sure of a better way to contact you.

encrypt_method should be selectable

one arg for class-PBS-LAAS-client.php is 'encrypt_method', which is defaulted to AES-256-CBC

This encrypt_method may not always be available. Or maybe someone wants to use a diffferent method.

It should be trivial to use the output of openssl_get_cipher_methods() to generate a select list and save this as a plugin setting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.