-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow developer token, update documentation #239
base: main
Are you sure you want to change the base?
Conversation
Very cool work to figure out the developer token work around with the current functions. I think there are some edge cases to consider in the code.Two that jump out are:
I'd also like to figure out a way to get this auth logic under the Thanks for contributing this fix, I'm sure it will help a lot of folks in similar cloud situations. Let me think about the PR a bit more before we make any code changes, I think the moving pieces are captured well now. |
We could wrap the token create with insistently, but I don't think we are making an API call. One thing I want to make sure is that the developer token is not written to ~/.boxr-auth (the life span is to short to bother. So far it appears not to do that, but a second set of eyes is also good. |
So passing a developer_token let’s you bypass the browser window pop up for
oAuth?
Trying to understand what changes when you pass a dev token….
…On Fri, Mar 17, 2023 at 5:13 PM danielruss ***@***.***> wrote:
1. You still need the client ID/secret. You cannot create a box
developer token if you dont have a box app with a CID/secret.
2. Good point. I'll be happy to swap the order. I'm not sure how to
update the PR, but I'll figure it out.
We could wrap the token create with insistently, but I don't think we are
making an API call. One thing I want to make sure is that the developer
token is not written to ~/.boxr-auth (the life span is to short to bother.
So far it appears not to do that, but a second set of eyes is also good.
—
Reply to this email directly, view it on GitHub
<#239 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGFKIJDYHHFNNVIF47V4CLW4THW7ANCNFSM6AAAAAAV65VX7Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
yes, the developer token is a bearer token. The code create an httr::oauth2.o token from the bearer token. |
changed order of developer_token in box_auth
order of parameters changed... |
@ijlyttle this still feels useful to me and I can't see how it would break existing code, is this on your radar for reviewing/merging? Looking at this again today, I think we could do this all by adding an example to the docs for |
I would like to modify the api (backwards compatible) to allow the user to pass a developer token to box_auth.