Giter Site home page Giter Site logo

microsoftgraph / angular-connect-rest-sample Goto Github PK

View Code? Open in Web Editor NEW
48.0 48.0 21.0 168 KB

[ARCHIVED] Use Microsoft Graph to access a user’s Microsoft account data from within an AngularJS web application. This sample uses REST calls directly to the Microsoft Graph endpoint and authenticates users with Microsoft Accounts or work or school Office 365 accounts.

License: MIT License

JavaScript 72.09% HTML 23.39% CSS 4.52%
devxsample

angular-connect-rest-sample's People

Contributors

andrewjmay avatar dan-silver avatar davidchesnut avatar jasonjoh avatar jthake avatar kalyankrishna1 avatar martellaj avatar navyasric avatar ricalo avatar tadaomachida avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-connect-rest-sample's Issues

401 Unauthorized

Downloaded the sample and changed the client_id with respect to my app and enabled permissions for the app in azure portal. It throws 401 Unauthorized error when trying to send mail.
Note : Enabled permissions for send.mail and user.read as mentioned

Issue with Permissions

The application works but there is a catch. Please update the documentation based on what I found.

The problem is described in this article: http://stackoverflow.com/questions/42013466/microsoftgraph-oauth2-scope
The SendMail app requires Mail.SendMail but the default setup for a Graph application uses User.Read only.

It was a pretty lame authorization approach in this over-simplified application as it would prompt for the initial permission on the first sign-in of the application so even if I changed the permission after the first sign-in, the new permission won't be used. So the magic touch is that I recreated with a new application Id and then set up the new permission properly before the first sign-in.

The other way is to update the application to prompt for the permission granting process each time.

The documentation should provide that hint or the Quick Start process be changed based on the nature of the sample application actions.

Passing token to own API

Hi,

Thanks for the sample, it's a really helpful piece of code.

As far as I understand, the ADAL angular library intercepts all requests to graph.microsoft.com and adds the appropriate tokens to those requests. Is there any way to get the actual tokens that the ADAL library fetches? I'd like to have my API perform the requests on behalf of the user (something like: client -> my api -> graph.microsoft.com) so that I can filter / perform some operations on the data coming back from the graph api, and then return that 'updated' data to the client.

I guess I could just provide all the required fields to my api, and have my api request tokens and then use those for graph.microsoft.com, but just wondering if there's a better way to do it.

Thanks!

p.s. This is not really an issue, more of a stackoverflow question, but I thought my chances of getting an answer were a bit higher here :)

Bower would not install graph-sdk until i changed the address

When running bower install off a cloned version, on Mac incase it makes a difference, bower hangs up on installing graph-sdk. Exact error included below
Failed to execute "git ls-remote --tags --heads [email protected]:microsoftgraph/msgraph-sdk-javascript.git", exit code of #128 Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

Additional error details:
Permission denied (publickey).
fatal: Could not read from remote repository.

Once i changed the address to
https://github.com/microsoftgraph/msgraph-sdk-javascrip.git
it worked properly.

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.