Code Monkey home page Code Monkey logo

azureoauth's Introduction

Travis-CI Build Status CRAN_Status_Badge Coverage Status

AzureOAuth

The purpose of this package is to make it easier to deal with OAuth tokens from Microsoft Azure. Certainly, the httr package takes care of a great majority of the headache. It is hope that this package can alleviate any remaining headache.

Needless to say, this package draws much inspitaration from httr.

Azure access

Talk about native apps and service apps.

What we will need

  • Function oauth_endpoint_azure() (in file oauth-endpoint.R) - this will take tenant_id an argument.

  • Function oauth_token_azure() (in file oauth-token.R).

  • Vignette showing how to get things working for oauth2.0_token().

  • R6 class TokenServiceAccountAzure (in file oauth-token.R).

  • Function init_oauth_service_account_azure() (in file oauth-server-side.R)

  • Function oauth_service_token_azure() (in file oauth-token.R).

  • Vignette showing how to get things working for oauth_service_token_azure().

Installation

AzureOAuth is not yet available on CRAN. You may install from GitHub:

# install.packages("devtools")
devtools::install_github("ijlyttle/AzureOAuth")

If you encounter a clear bug, please file a minimal reproducible example on github.

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

azureoauth's People

Contributors

ijlyttle avatar

Watchers

 avatar  avatar  avatar

azureoauth's Issues

suggest permission link

One way a Web API token-request can fail happens when the app has not been "approved" by a tenant administrator.

We can detect this failure, then compose and offer this link that can be forwarded to a tenant admin; she can click the link to approve the app.

https://login.microsoftonline.com/{tenant_id}/adminconsent?client_id={application_id}&state=12345&redirect_uri=http://localhost/ 

Collaborating

Hi @ijlyttle, I saw your comment over on the httr2 repo on device code authentication. I didn't realise that you were also working on Oauth tokens for Azure.

I've written a suite of packages for talking to Azure from R, which are now on CRAN. One of them in particular, AzureRMR, has functionality for obtaining tokens. I've now separated this out into its own package at https://github.com/cloudyr/AzureAuth, which should also be on CRAN in the near future.

Would you be interested in collaborating with me on this? There are still some features I'd like to add, such as dSTS and federated logins. Longer term, I'd like for AzureAuth to be like the R equivalent of the ADAL client libraries; I'm sure there's plenty of stuff I'm not even aware of yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.