JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

"Updates, discussions, and documentation of the BungieNetPlatform API."

Request Join
originally posted in:BungieNetPlatform
5/6/2015 4:13:30 AM
6

What's going on with the PSN auth flow?

Ran my program today and got a bad status line - basically I got nothing from the server. I know this is all on Playstation's side, but maybe someone could comment on why this might be happening? It's not even my program either. Opened up both firefox and chrome and tried to sign-in - page didn't show. I click on the link for the Playstation Network and get a 302 which it follows to PSN's auth page, but they aren't responding with anything. Sometimes it'll respond and I can get a JSESSIONID cookie, but then it won't respond after I POST with my information. Is this just me?

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • Edited by lowlines: 5/10/2015 2:36:23 AM
    This impacts Bungie.net logins too, as I logged out to test this and I can no longer log in via PSN to Bungie.net. All the PSN Auth pages seem to be down. [edit] Bungie.net is working again now for me.

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • Seems the PSN auth flow now has a "params" input that is passed in via the login form [quote] <input id="brandingParams" type="hidden" name="params" value="cmVxdWVzdF9sb2NhbGU9ZW5fVVMmcmVxdWVzdF90aGVtZT1saXF1aWQ=" />[/quote] That input value is nothing more than the query parameters base64 encoded, eg: "request_locale=en_US&request_theme=liquid" Once I included that "param=xxx" value in my POST my PSN login works again. For example, my java client builds its params like this: [spoiler] // setup post parameters String params = "rememberSignIn=1" + "&j_username=" + URLEncoder.encode(username, "UTF-8") + "&j_password=" + URLEncoder.encode(password, "UTF-8") // params needed or the POST will fail + "&params=" + originalConnection.getURL().getQuery() ; [/spoiler] I ignore the "params" input in the HTML and just build it based on the redirect URL, since they include the same parameters and it saves me from having to search the HTML content for the input value.

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

    7 Replies
    • Tried out using a QWebView in PySide: - Sent a HEAD request to www.bungie.net/en/User/Signin/Psnid - Grabbed the location from the header. - Set the webview to the location. - Signed-in to PSN by user input - Get redirected to: [quote]https://auth.api.sonyentertainmentnetwork.com/2.0/oauth/authorize?response_type=code&client_id=78420c74-1fdf-4575-b43f-eb94c7d770bf&redirect_uri=https%3a%2f%2fwww.bungie.net%2fen%2fUser%2fSignIn%2fPsnid&scope=psn:s2s&request_locale=en[/quote] Which displays this: [quote]{"error_description":"Invalid redirect: https%3a%2f%2fwww.bungie.net%2fen%2fUser%2fSignIn%2fPsnid does not match one of the registered values.","error":"redirect_uri_mismatch","error_code":4174} [/quote]

      Posting in language:

       

      Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

      1 Reply
      • I've got the same problem! PSN Curl return an error: "Empty reply from server"

        Posting in language:

         

        Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

      • What language is your code? Could you share your login procedure?

        Posting in language:

         

        Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

        1 Reply
        • FYI, just went to the Legend page to see my characters (after getting no characters back from bungie in my app) and it says the system is currently offline... so they may be doing some maintenance or something. Not sure if that's the same thing you guys are experiencing...

          Posting in language:

           

          Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

          1 Reply
          You are not allowed to view this content.
          ;
          preload icon
          preload icon
          preload icon