11

I’ve spent 2 weeks trying to simply automate logging into my damn school’s blackboard but this ducking popup won’t freaking let me access it. I’ve tried selenium. I’ve used beautifulsoup and requests. I’ve even tried a tool called mechanize with python
But I’ve now realized I simply have no damn idea what I’m doing. I’ve read and tried way too many stack overflow articles and I’m just sick of this damn popup

If I can’t figure it out by the end of the upcoming thanksgiving break I’m dropping this damn project until I learn enough to utilize the blackboard API’s. I’m a little sure those will help

Comments
  • 27
    That looks like plain basic auth. Isn't it?
  • 5
    Your school is using SAML for auth? It seems like you have a single-sign-on process. That’s going to complicate the login process.
  • 0
    @frankot we just started API’s in class. At this point I don’t even know where to start in trying to use the backend API’s. Hence my attempts at accessing the popup until I have the understanding to use the API’s
  • 0
    @ScriptCoded no idea. Security is next semester
  • 0
    @SevenDeadlyBugs

    Nope.
  • 2
    this is a browser-speciffic popup. I strongly doubt you would have access to it. It usually appears after getting a 401 response to some request. It's a nice UX quirk simply telling you "uh-oh, you either forgot to pass Authorization header to the request ot the Authorization header had an expired value".

    Just sniff the Authorization header value after you enter your login info and re-POST the same request in your API consumer. Update the Authorization header value as needed.
  • 0
    @jester5537 Just like @SevenDeadlyBugs said, know how to send a header?
  • 0
    use the browser Devtools, and check what is passed to the server, and what the server responds with, on an error/sucessful login.
    Also - what are you trying to actually do here? avoid the browser pop up and then use the browser?, or automate something with an external tool?
    if the first... then give up, you are doing something very wrong.
  • 1
    I would get over that with PyAutoGUI.
    Not the most elegant solution but one that would solve the problem.
    https://pyautogui.readthedocs.io/en...
  • 1
    open the network tab
    try to login
    open the request
    check for params sent

    create a session in python
    run the same request
    profit
  • 0
    Have you opened developer tools and seen what it is posting?
  • 0
    You can do @username:password or something like that in the URL to bypass this pop-up. Look up HTTP basic auth.
  • 5
    Use the url https:// username : password @ website . net / page
    (without the spaces)
  • 0
    Last defcon there were lots of exploits for bb so just use one of those to login xD
  • 0
    It's generally username:pass@url as url
  • 0
    Luckyli my school's timetable provider offers this
Add Comment