lapis-yggdrasil 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.codeclimate.yml +18 -0
- data/.gitignore +151 -0
- data/.rspec +3 -0
- data/.rubocop.yml +1156 -0
- data/.travis.yml +4 -0
- data/Gemfile +8 -0
- data/LICENSE.md +16 -0
- data/README.md +130 -0
- data/Rakefile +28 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lapis-yggdrasil.gemspec +35 -0
- data/lib/lapis/yggdrasil.rb +18 -0
- data/lib/lapis/yggdrasil/agent.rb +52 -0
- data/lib/lapis/yggdrasil/authentication_client.rb +106 -0
- data/lib/lapis/yggdrasil/authentication_error.rb +29 -0
- data/lib/lapis/yggdrasil/client.rb +38 -0
- data/lib/lapis/yggdrasil/error_codes.rb +43 -0
- data/lib/lapis/yggdrasil/messaging.rb +23 -0
- data/lib/lapis/yggdrasil/messaging/authentication_request.rb +50 -0
- data/lib/lapis/yggdrasil/messaging/authentication_response.rb +36 -0
- data/lib/lapis/yggdrasil/messaging/error_response.rb +74 -0
- data/lib/lapis/yggdrasil/messaging/invalidate_request.rb +34 -0
- data/lib/lapis/yggdrasil/messaging/refresh_request.rb +47 -0
- data/lib/lapis/yggdrasil/messaging/refresh_response.rb +29 -0
- data/lib/lapis/yggdrasil/messaging/request.rb +25 -0
- data/lib/lapis/yggdrasil/messaging/response.rb +33 -0
- data/lib/lapis/yggdrasil/messaging/response_factory.rb +82 -0
- data/lib/lapis/yggdrasil/messaging/signout_request.rb +38 -0
- data/lib/lapis/yggdrasil/messaging/token_request.rb +42 -0
- data/lib/lapis/yggdrasil/messaging/token_response.rb +36 -0
- data/lib/lapis/yggdrasil/messaging/validate_request.rb +34 -0
- data/lib/lapis/yggdrasil/profile.rb +65 -0
- data/lib/lapis/yggdrasil/session.rb +60 -0
- data/lib/lapis/yggdrasil/session_info.rb +62 -0
- data/lib/lapis/yggdrasil/version.rb +5 -0
- data/spec/factories/agent_factory.rb +10 -0
- data/spec/factories/authentication_error_factory.rb +14 -0
- data/spec/factories/message_factory.rb +111 -0
- data/spec/factories/profile_factory.rb +20 -0
- data/spec/factories/session_info_factory.rb +11 -0
- data/spec/factories/uuid_factory.rb +28 -0
- data/spec/lapis/yggdrasil/agent_spec.rb +103 -0
- data/spec/lapis/yggdrasil/authentication_client_spec.rb +200 -0
- data/spec/lapis/yggdrasil/authentication_error_spec.rb +42 -0
- data/spec/lapis/yggdrasil/messaging/authentication_request_spec.rb +61 -0
- data/spec/lapis/yggdrasil/messaging/authentication_response_spec.rb +63 -0
- data/spec/lapis/yggdrasil/messaging/error_response_spec.rb +164 -0
- data/spec/lapis/yggdrasil/messaging/invalidate_request_spec.rb +29 -0
- data/spec/lapis/yggdrasil/messaging/refresh_request_spec.rb +70 -0
- data/spec/lapis/yggdrasil/messaging/refresh_response_spec.rb +50 -0
- data/spec/lapis/yggdrasil/messaging/response_factory_spec.rb +130 -0
- data/spec/lapis/yggdrasil/messaging/response_spec.rb +36 -0
- data/spec/lapis/yggdrasil/messaging/signout_request_spec.rb +29 -0
- data/spec/lapis/yggdrasil/messaging/validate_request_spec.rb +29 -0
- data/spec/lapis/yggdrasil/profile_spec.rb +108 -0
- data/spec/lapis/yggdrasil/session_info_spec.rb +131 -0
- data/spec/lapis/yggdrasil/session_spec.rb +158 -0
- data/spec/spec_helper.rb +89 -0
- metadata +269 -0
@@ -0,0 +1,158 @@
|
|
1
|
+
require_relative '../../spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe Lapis::Yggdrasil::Session do
|
4
|
+
let(:info) { build(:session_info) }
|
5
|
+
let(:client) { double('AuthClient') }
|
6
|
+
subject(:session) { Lapis::Yggdrasil::Session.new(info, client) }
|
7
|
+
|
8
|
+
describe '#info' do
|
9
|
+
subject { session.info }
|
10
|
+
|
11
|
+
it 'is the expected value' do
|
12
|
+
is_expected.to eq info
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
describe '#valid?' do
|
17
|
+
subject { session.valid? }
|
18
|
+
|
19
|
+
context 'with a valid session' do
|
20
|
+
before(:each) do
|
21
|
+
allow(client).to receive(:validate).and_return(true)
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'is true' do
|
25
|
+
is_expected.to eq true
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'calls client.validate' do
|
29
|
+
subject
|
30
|
+
expect(client).to have_received(:validate).with(info)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
context 'with an invalid session' do
|
35
|
+
before(:each) do
|
36
|
+
allow(client).to receive(:validate).and_return(false)
|
37
|
+
end
|
38
|
+
|
39
|
+
it 'is false' do
|
40
|
+
is_expected.to eq false
|
41
|
+
end
|
42
|
+
|
43
|
+
it 'calls client.validate' do
|
44
|
+
subject
|
45
|
+
expect(client).to have_received(:validate).with(info)
|
46
|
+
end
|
47
|
+
|
48
|
+
it 'stores the invalid state' do
|
49
|
+
subject
|
50
|
+
subject # Second call should not call client.validate.
|
51
|
+
expect(client).to have_received(:validate).once
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe '#refresh' do
|
57
|
+
context 'without a profile' do
|
58
|
+
subject { session.refresh }
|
59
|
+
|
60
|
+
context 'with a valid session' do
|
61
|
+
let(:new_info) { build(:session_info, :client_token => info.client_token) }
|
62
|
+
before(:each) do
|
63
|
+
allow(client).to receive(:refresh).and_return(new_info)
|
64
|
+
end
|
65
|
+
|
66
|
+
it 'returns the new info' do
|
67
|
+
is_expected.to eq new_info
|
68
|
+
end
|
69
|
+
|
70
|
+
it 'calls client.refresh' do
|
71
|
+
subject
|
72
|
+
expect(client).to have_received(:refresh).with(info, nil)
|
73
|
+
end
|
74
|
+
|
75
|
+
it 'updates #info' do
|
76
|
+
expect { subject }.to change { session.info }.from(info).to(new_info)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
context 'with an invalid session' do
|
81
|
+
let(:error) { build(:error) }
|
82
|
+
before(:each) do
|
83
|
+
allow(client).to receive(:refresh) { raise error }
|
84
|
+
end
|
85
|
+
|
86
|
+
it 'raises an error' do
|
87
|
+
expect { subject }.to raise_error(Lapis::Yggdrasil::AuthenticationError, error.message)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
context 'with a profile' do
|
93
|
+
let(:profile) { build(:profile) }
|
94
|
+
let(:error) { build(:error, :code => Lapis::Yggdrasil::ErrorCodes::PROFILE_NOT_SUPPORTED) }
|
95
|
+
subject { session.refresh(profile) }
|
96
|
+
before(:each) do
|
97
|
+
allow(client).to receive(:refresh) { raise error }
|
98
|
+
end
|
99
|
+
|
100
|
+
it 'calls client.refresh' do
|
101
|
+
begin
|
102
|
+
subject
|
103
|
+
rescue
|
104
|
+
# ...
|
105
|
+
end
|
106
|
+
expect(client).to have_received(:refresh).with(info, profile)
|
107
|
+
end
|
108
|
+
|
109
|
+
it 'raises an error' do
|
110
|
+
expect { subject }.to raise_error(Lapis::Yggdrasil::AuthenticationError, error.message)
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
describe '#validate' do
|
116
|
+
let(:is_valid) { true }
|
117
|
+
subject { session.validate }
|
118
|
+
before(:each) do
|
119
|
+
allow(client).to receive(:validate).and_return(is_valid)
|
120
|
+
end
|
121
|
+
|
122
|
+
it 'returns the expected result' do
|
123
|
+
is_expected.to eq is_valid
|
124
|
+
end
|
125
|
+
|
126
|
+
it 'calls client.validate' do
|
127
|
+
subject
|
128
|
+
expect(client).to have_received(:validate).with(info)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
describe '#invalidate' do
|
133
|
+
subject { session.invalidate }
|
134
|
+
before(:each) do
|
135
|
+
allow(client).to receive(:validate).and_return(true)
|
136
|
+
allow(client).to receive(:invalidate) do
|
137
|
+
# Override previous valid stub.
|
138
|
+
allow(client).to receive(:validate).and_return(false)
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
it 'calls client.invalidate' do
|
143
|
+
subject
|
144
|
+
expect(client).to have_received(:invalidate).with(info)
|
145
|
+
end
|
146
|
+
|
147
|
+
it 'sets #valid? to false' do
|
148
|
+
expect { subject }.to change { session.valid? }.from(true).to(false)
|
149
|
+
end
|
150
|
+
|
151
|
+
it 'ignores multiple calls' do
|
152
|
+
subject
|
153
|
+
subject # Second call should not call client.invalidate.
|
154
|
+
expect(client).to have_received(:invalidate).once
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
# Code Climate test coverage.
|
2
|
+
begin
|
3
|
+
require 'codeclimate-test-reporter'
|
4
|
+
CodeClimate::TestReporter.start
|
5
|
+
rescue
|
6
|
+
# Continue without Code Climate test coverage.
|
7
|
+
end
|
8
|
+
|
9
|
+
require 'rspec'
|
10
|
+
require 'factory_girl'
|
11
|
+
require 'httpclient'
|
12
|
+
require 'webmock/rspec'
|
13
|
+
require 'json'
|
14
|
+
|
15
|
+
RSpec.configure do |config|
|
16
|
+
# rspec-expectations config goes here. You can use an alternate
|
17
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
18
|
+
# assertions if you prefer.
|
19
|
+
config.expect_with :rspec do |expectations|
|
20
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
21
|
+
# and `failure_message` of custom matchers include text for helper methods
|
22
|
+
# defined using `chain`, e.g.:
|
23
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
24
|
+
# # => "be bigger than 2 and smaller than 4"
|
25
|
+
# ...rather than:
|
26
|
+
# # => "be bigger than 2"
|
27
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
28
|
+
end
|
29
|
+
|
30
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
31
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
32
|
+
config.mock_with :rspec do |mocks|
|
33
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
34
|
+
# a real object. This is generally recommended, and will default to
|
35
|
+
# `true` in RSpec 4.
|
36
|
+
mocks.verify_partial_doubles = true
|
37
|
+
end
|
38
|
+
|
39
|
+
# Allows RSpec to persist some state between runs in order to support
|
40
|
+
# the `--only-failures` and `--next-failure` CLI options. We recommend
|
41
|
+
# you configure your source control system to ignore this file.
|
42
|
+
config.example_status_persistence_file_path = 'spec/examples.txt'
|
43
|
+
|
44
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
45
|
+
# recommended. For more details, see:
|
46
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
47
|
+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
48
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
49
|
+
config.disable_monkey_patching!
|
50
|
+
|
51
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
52
|
+
# be too noisy due to issues in dependencies.
|
53
|
+
config.warnings = true
|
54
|
+
|
55
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
56
|
+
# file, and it's useful to allow more verbose output when running an
|
57
|
+
# individual spec file.
|
58
|
+
if config.files_to_run.one?
|
59
|
+
# Use the documentation formatter for detailed output,
|
60
|
+
# unless a formatter has already been configured
|
61
|
+
# (e.g. via a command-line flag).
|
62
|
+
config.default_formatter = 'doc'
|
63
|
+
end
|
64
|
+
|
65
|
+
# Run specs in random order to surface order dependencies. If you find an
|
66
|
+
# order dependency and want to debug it, you can fix the order by providing
|
67
|
+
# the seed, which is printed after each run.
|
68
|
+
# --seed 1234
|
69
|
+
config.order = :random
|
70
|
+
|
71
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
72
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
73
|
+
# test failures related to randomization by passing the same `--seed` value
|
74
|
+
# as the one that triggered the failure.
|
75
|
+
Kernel.srand config.seed
|
76
|
+
|
77
|
+
# Include FactoryGirl for building test objects.
|
78
|
+
config.include FactoryGirl::Syntax::Methods
|
79
|
+
end
|
80
|
+
|
81
|
+
# Include the library.
|
82
|
+
require_relative '../lib/lapis/yggdrasil'
|
83
|
+
|
84
|
+
# Mock web requests.
|
85
|
+
WebMock.disable_net_connect!(:allow => 'codeclimate.com')
|
86
|
+
|
87
|
+
# Include factories.
|
88
|
+
FactoryGirl.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
|
89
|
+
FactoryGirl.find_definitions
|
metadata
ADDED
@@ -0,0 +1,269 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lapis-yggdrasil
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michael Miller
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-05-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: httpclient
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: factory_girl
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '4.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '4.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: webmock
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '2.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '2.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: reek
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.38.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.38.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: codeclimate-test-reporter
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: yard
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description: |-
|
154
|
+
Small library for authenticating accounts with Mojang's game servers.
|
155
|
+
This functionality can be used to authenticate with custom game launchers.
|
156
|
+
email:
|
157
|
+
- bluepixelmike@gmail.com
|
158
|
+
executables: []
|
159
|
+
extensions: []
|
160
|
+
extra_rdoc_files: []
|
161
|
+
files:
|
162
|
+
- .codeclimate.yml
|
163
|
+
- .gitignore
|
164
|
+
- .rspec
|
165
|
+
- .rubocop.yml
|
166
|
+
- .travis.yml
|
167
|
+
- Gemfile
|
168
|
+
- LICENSE.md
|
169
|
+
- README.md
|
170
|
+
- Rakefile
|
171
|
+
- bin/console
|
172
|
+
- bin/setup
|
173
|
+
- lapis-yggdrasil.gemspec
|
174
|
+
- lib/lapis/yggdrasil.rb
|
175
|
+
- lib/lapis/yggdrasil/agent.rb
|
176
|
+
- lib/lapis/yggdrasil/authentication_client.rb
|
177
|
+
- lib/lapis/yggdrasil/authentication_error.rb
|
178
|
+
- lib/lapis/yggdrasil/client.rb
|
179
|
+
- lib/lapis/yggdrasil/error_codes.rb
|
180
|
+
- lib/lapis/yggdrasil/messaging.rb
|
181
|
+
- lib/lapis/yggdrasil/messaging/authentication_request.rb
|
182
|
+
- lib/lapis/yggdrasil/messaging/authentication_response.rb
|
183
|
+
- lib/lapis/yggdrasil/messaging/error_response.rb
|
184
|
+
- lib/lapis/yggdrasil/messaging/invalidate_request.rb
|
185
|
+
- lib/lapis/yggdrasil/messaging/refresh_request.rb
|
186
|
+
- lib/lapis/yggdrasil/messaging/refresh_response.rb
|
187
|
+
- lib/lapis/yggdrasil/messaging/request.rb
|
188
|
+
- lib/lapis/yggdrasil/messaging/response.rb
|
189
|
+
- lib/lapis/yggdrasil/messaging/response_factory.rb
|
190
|
+
- lib/lapis/yggdrasil/messaging/signout_request.rb
|
191
|
+
- lib/lapis/yggdrasil/messaging/token_request.rb
|
192
|
+
- lib/lapis/yggdrasil/messaging/token_response.rb
|
193
|
+
- lib/lapis/yggdrasil/messaging/validate_request.rb
|
194
|
+
- lib/lapis/yggdrasil/profile.rb
|
195
|
+
- lib/lapis/yggdrasil/session.rb
|
196
|
+
- lib/lapis/yggdrasil/session_info.rb
|
197
|
+
- lib/lapis/yggdrasil/version.rb
|
198
|
+
- spec/factories/agent_factory.rb
|
199
|
+
- spec/factories/authentication_error_factory.rb
|
200
|
+
- spec/factories/message_factory.rb
|
201
|
+
- spec/factories/profile_factory.rb
|
202
|
+
- spec/factories/session_info_factory.rb
|
203
|
+
- spec/factories/uuid_factory.rb
|
204
|
+
- spec/lapis/yggdrasil/agent_spec.rb
|
205
|
+
- spec/lapis/yggdrasil/authentication_client_spec.rb
|
206
|
+
- spec/lapis/yggdrasil/authentication_error_spec.rb
|
207
|
+
- spec/lapis/yggdrasil/messaging/authentication_request_spec.rb
|
208
|
+
- spec/lapis/yggdrasil/messaging/authentication_response_spec.rb
|
209
|
+
- spec/lapis/yggdrasil/messaging/error_response_spec.rb
|
210
|
+
- spec/lapis/yggdrasil/messaging/invalidate_request_spec.rb
|
211
|
+
- spec/lapis/yggdrasil/messaging/refresh_request_spec.rb
|
212
|
+
- spec/lapis/yggdrasil/messaging/refresh_response_spec.rb
|
213
|
+
- spec/lapis/yggdrasil/messaging/response_factory_spec.rb
|
214
|
+
- spec/lapis/yggdrasil/messaging/response_spec.rb
|
215
|
+
- spec/lapis/yggdrasil/messaging/signout_request_spec.rb
|
216
|
+
- spec/lapis/yggdrasil/messaging/validate_request_spec.rb
|
217
|
+
- spec/lapis/yggdrasil/profile_spec.rb
|
218
|
+
- spec/lapis/yggdrasil/session_info_spec.rb
|
219
|
+
- spec/lapis/yggdrasil/session_spec.rb
|
220
|
+
- spec/spec_helper.rb
|
221
|
+
homepage: https://github.com/lapis-mc/yggdrasil
|
222
|
+
licenses:
|
223
|
+
- MIT
|
224
|
+
metadata: {}
|
225
|
+
post_install_message:
|
226
|
+
rdoc_options: []
|
227
|
+
require_paths:
|
228
|
+
- lib
|
229
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
230
|
+
requirements:
|
231
|
+
- - '>='
|
232
|
+
- !ruby/object:Gem::Version
|
233
|
+
version: '0'
|
234
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
235
|
+
requirements:
|
236
|
+
- - '>='
|
237
|
+
- !ruby/object:Gem::Version
|
238
|
+
version: '0'
|
239
|
+
requirements: []
|
240
|
+
rubyforge_project:
|
241
|
+
rubygems_version: 2.0.15
|
242
|
+
signing_key:
|
243
|
+
specification_version: 4
|
244
|
+
summary: Provides access to Mojang's authentication system.
|
245
|
+
test_files:
|
246
|
+
- spec/factories/agent_factory.rb
|
247
|
+
- spec/factories/authentication_error_factory.rb
|
248
|
+
- spec/factories/message_factory.rb
|
249
|
+
- spec/factories/profile_factory.rb
|
250
|
+
- spec/factories/session_info_factory.rb
|
251
|
+
- spec/factories/uuid_factory.rb
|
252
|
+
- spec/lapis/yggdrasil/agent_spec.rb
|
253
|
+
- spec/lapis/yggdrasil/authentication_client_spec.rb
|
254
|
+
- spec/lapis/yggdrasil/authentication_error_spec.rb
|
255
|
+
- spec/lapis/yggdrasil/messaging/authentication_request_spec.rb
|
256
|
+
- spec/lapis/yggdrasil/messaging/authentication_response_spec.rb
|
257
|
+
- spec/lapis/yggdrasil/messaging/error_response_spec.rb
|
258
|
+
- spec/lapis/yggdrasil/messaging/invalidate_request_spec.rb
|
259
|
+
- spec/lapis/yggdrasil/messaging/refresh_request_spec.rb
|
260
|
+
- spec/lapis/yggdrasil/messaging/refresh_response_spec.rb
|
261
|
+
- spec/lapis/yggdrasil/messaging/response_factory_spec.rb
|
262
|
+
- spec/lapis/yggdrasil/messaging/response_spec.rb
|
263
|
+
- spec/lapis/yggdrasil/messaging/signout_request_spec.rb
|
264
|
+
- spec/lapis/yggdrasil/messaging/validate_request_spec.rb
|
265
|
+
- spec/lapis/yggdrasil/profile_spec.rb
|
266
|
+
- spec/lapis/yggdrasil/session_info_spec.rb
|
267
|
+
- spec/lapis/yggdrasil/session_spec.rb
|
268
|
+
- spec/spec_helper.rb
|
269
|
+
has_rdoc:
|