Skip to content

SSL Error when authenticating to Enterprise Box #240

@nickp60

Description

@nickp60

Hi boxr folks!
I am trying to get this configured with enterprise box. I followed the steps outlined in the guide, with the addition of adding the localhost to list of redirects as outlined in issue #58

When I run box_auth, I get prompted to login as expected. I selected the SSO option, entered my credentials, and clicked approve when prompted to allow the app access to the files. I am then redirected to localhost page showing:

Authentication complete. Please close this page and return to R.

However in R, I see the following error.

box_auth()
Using `BOX_CLIENT_ID` from environment
Using `BOX_CLIENT_SECRET` from environment
Waiting for authentication in browser...
Press Esc/Ctrl + C to abort
Authentication complete.
Error: LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to app.box.com:443 
Retrying in 1 seconds.
Waiting for authentication in browser...
Press Esc/Ctrl + C to abort

The ~/.boxr-oauth file is created but empty.

I was able to solve this by replacing app.box.com with <enterprise_url>.box.com, so I'm going to make a PR for adding an optional URL argument during authentication .

Truncated system info

R version 4.1.2 (2021-11-01)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 11.7.1

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] boxr_0.3.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions