Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8448999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:34:47+00:00 2026-06-10T10:34:47+00:00

The authorization link for Box looks something like: https://www.box.com/api/1.0/auth/ticketName I’ve tried to include state

  • 0

The authorization link for Box looks something like:

https://www.box.com/api/1.0/auth/ticketName

I’ve tried to include state in this manner:

https://www.box.com/api/1.0/auth/ticketName?state=1234

But the redirect url is formatted like this:

https://www.example.com/authenticate/?ticket=ticketName&auth_token=xyz

So my state is lost.

How can I send in state and have it come back in the redirect url?

The process is:

HttpClient client = new HttpClient();
String getUrl = "https://www.box.com/api/1.0/rest?action=get_ticket&api_key=" + API_KEY;
HttpMethod getMethod = new GetMethod(getUrl);
client.executeMethod(getMethod);
//Get ticket from response
String authorizationUrl = "https://www.box.com/api/1.0/auth/" + ticket + "?state=1234" 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:34:49+00:00Added an answer on June 10, 2026 at 10:34 am

    Box does not currently support sending in additional parameters to be echoed back to the caller during authentication. Echoing back a &state=VALUE to the caller is part of the OAuth2 flow, which we will be rolling out sometime soon for our V2 APIs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to do the same thing as in this link: http://www.codeproject.com/KB/WCF/Custom_Authorization_WCF.aspx But without
I tried to follow https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview , but somehow when I look at the generated
This is my api.py # myapp/api.py from django.contrib.auth.models import User from tastypie.authorization import Authorization
I need to write authentication function with asynchronous callback from remote Auth API. Simple
I have followed this guide: http://www.danielbaulig.de/socket-ioexpress/ to link express.js to socket.io and it works
How do you exchange Authorization code for a OAuth2 token for google apis in
I'm using this authorization function in my socket.io setup: io.set('authorization', function (data, accept) {
Looking for a custom authorization solution for a asp.net mvc 3 application with sql
I already audit authorization success, failure and logout. I've considered auditing (logging) every method
I've written an authorization system which relies on objects representing the current user. To

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.