AuthBot icon indicating copy to clipboard operation
AuthBot copied to clipboard

Maintain multiple tokens?

Open miaosenwang opened this issue 9 years ago • 3 comments

Hello, This project has been very helpful to me. I was able to use it to get the token to call MS Graph. I have a new requirement that, in additional to calling MSGraph, I also need to call Visual Studio Online.

What would be the best way to achieve that? Since all the settings are static variables, so I guess it would require a lot of changes to this package to support that.

miaosenwang avatar Dec 11 '16 22:12 miaosenwang

Hello Miaosenwang, can you explain me how did you use the access token obtained from AuthBot to make a call to MS graph API?

Thanks in Advance.

Masssluis avatar Jan 22 '17 12:01 Masssluis

Hello @Masssluis I used MS Graph's REST api with Authentication header: Authentication: Bearer {your token}

You can see the documentation here: https://graph.microsoft.io/en-us/docs/overview/call_api

miaosenwang avatar Jan 24 '17 01:01 miaosenwang

You basically assign multiple resources to your application so the same authentication will let you get access to different resources.

matvelloso avatar May 18 '17 20:05 matvelloso