Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 670b2c1

Browse files
authored
Merge pull request #80 from microsoftgraph/feature/defaults
- updates getting started for new authentication provider
2 parents 25eca5f + eaadda2 commit 670b2c1

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
## [0.12.1] - 2023-01-18
15+
16+
### Changed
17+
18+
- Fixed an issue where module would be impossible to import.
19+
- Fixed an issue where the authentication provider would fail to return the token.
20+
1421
## [0.12.0] - 2023-01-17
1522

1623
### Changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ For an example of how to get an authentication provider, see [choose a Microsoft
2828
2929
```Ruby
3030
require "microsoft_kiota_authentication_oauth"
31+
require "microsoft_graph_core"
3132

32-
context = MicrosoftKiotaAuthenticationOauth::ClientCredentialContext.new("<the tenant id from your app registration>", "<the client id from your app registration>", "<the client secret from your app registration>")
33+
context = MicrosoftKiotaAuthenticationOAuth::ClientCredentialContext.new("<the tenant id from your app registration>", "<the client id from your app registration>", "<the client secret from your app registration>")
3334

34-
authentication_provider = MicrosoftKiotaAuthenticationOauth::OAuthAuthenticationProvider.new(context, nil, ["Files.Read"])
35+
authentication_provider = MicrosoftGraphCore::Authentication::OAuthAuthenticationProvider.new(context, nil, ["Files.Read"])
3536
```
3637

3738
### 2.3 Get a Graph Service Client and Adapter object

lib/microsoft_graph.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
require_relative 'microsoft_graph_service_client'
2+
require_relative 'microsoft_graph_request_adapter'
3+
require_relative 'models/models'
14
module MicrosoftGraph
25
end

lib/version_information.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module MicrosoftGraph
22
class VersionInformation
3-
VERSION = "0.12.0"
3+
VERSION = "0.12.1"
44
end
55
end
66

microsoft_graph.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
2929
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
3030
spec.require_paths = ["lib"]
3131

32-
spec.add_runtime_dependency 'microsoft_graph_core', '~> 0.1.0'
32+
spec.add_runtime_dependency 'microsoft_graph_core', '>= 0.1', '< 0.3'
3333
spec.add_development_dependency 'rake', '~> 13.0'
3434
spec.add_development_dependency "rspec", "~> 3.0"
3535
end

0 commit comments

Comments
 (0)