Select to view content in your preferred language

Does the R-ArcGIS Bridge support remote data from portals secured with SAML?

658
3
11-08-2021 05:08 AM
AdamBranscomb2
Emerging Contributor

Hi,

The excellent recent video describing the R-ArcGIS bridge describes accessing remote data (e.g. a Feature Service) using the arcgisbinding library.

Specifically, the video describes how arc.portal_connect will allow you to log in to a portal using a username and password if you need to connect to a different Portal from your current active portal in ArcGIS Pro.

In my scenario, ArcGIS Pro is not installed on the same machine where R studio is. I expect to be using the manually installed ArcGISBinding library to connect to secure feature services in an ArcGIS Enterprise. Also my ArcGIS Enterprise is using a SAML-compliant identity provider (Azure AD).

Q1) Can I still use arc.portal_connect() when I don't have ArcGIS Pro installed? I assume yes.

Q2) How does arc.portal_connect() allow me to login using SAML authentication?

Thanks in advance,

Adam

 

The R-ArcGIS Bridge is the R integration for ArcGIS Pro that enriches your spatial data science workflows with rich analysis capabilities of the R language. This technical workshop will introduce new developments in the R-ArcGIS Bridge, including the new Conda support for R and enhancements to the
0 Kudos
3 Replies
EricaNova
Frequent Contributor

Great question @AdamBranscomb2 . I log in via https://mnrf.maps.arcgis.com/ (Enterprise login) and I'd really like to set up a Shiny App where my colleagues can have Shiny check their account credentials somehow, then access data in groups they are part of. Any thoughts @JosiahParry ? What about accessing fully public data from AGOL?

0 Kudos
JosiahParry
Occasional Contributor

Hey both! I would strongly recommend that you configure a scoped API key and use arcgisutils::auth_key() to access that.

https://developers.arcgis.com/r-bridge/authentication/connecting-to-a-portal/#using-an-api-key

EricaNova
Frequent Contributor

Thanks @JosiahParry , I don't have privs to create an API key with my organization's account, unfortunately. I can create a free developer account, but not sure how to link that to my content (there are a lot of options when creating an API key, and I don't want to do something that's not secure). I am able to set up oauth2 credentials - would this work within Shiny or no? I'm having trouble finding examples online to set up a pretty basic Shiny app this way - new(ish) to Shiny so a demo would be amazing if you know of one. 

0 Kudos