microsoftgraph / msgraph-sdk-ruby

Microsoft Graph Ruby client library for v1 APIs
https://graph.microsoft.com
MIT License
100 stars 68 forks source link

Modified the usage example, because it could NOT execute. #47

Closed jinroq closed 1 year ago

jinroq commented 5 years ago

Although the usage example using adal is described, this usage example can NOT execute correctly at present.

When the usage example described in README is used as it is:

./adal-1.0.0/lib/adal/client_assertion_certificate.rb:31:in `<class:ClientAssertionCertificate>': uninitialized constant ADAL::ClientAssertionCertificate::RequestParameters (NameError)

If we change the adal to use this way:

./json/common.rb:156:in `initialize': A JSON text must at least contain two octets! (JSON::ParserError)

After fixed JSON::ParserError:

AADSTS90002: Tenant '<tenant_id>.onmicrosoft.com' not found. This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator.

Since adal is not already maintained, instead of I used the httparty example for reference.

baywet commented 1 year ago

Thank you for the contribution. We retired that version of the SDK a number of years ago and are now working on a new preview. You can learn all about it on the readme page.