standard_id-apple 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a77a4c61dc7a649544a240e29a318dd89b3973a429fb796992214f043bdd176b
4
+ data.tar.gz: a119c315995c98edac369d3d1c96d645b1871811c343e81a3f30e90480d354b8
5
+ SHA512:
6
+ metadata.gz: 04a5fc1120b372888042832a64c3508f4dd2e85e6807da34365186ba77ed54846641c58c04880d0f2652776f0429d2abc57c8f613bd21ca417b19750723cc764
7
+ data.tar.gz: 609d9235c817d7e9d6805b8b9f91f19f7f213d7475b3d48578cbc4d28065b9a20762fa68968c6634db454bb3e53d842edb5699037b811f6214c29cebb1a7b489
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,8 @@
1
+ # Omakase Ruby styling for Rails
2
+ inherit_gem: { rubocop-rails-omakase: rubocop.yml }
3
+
4
+ # Overwrite or add rules to create your own house style
5
+
6
+ # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
7
+ Layout/SpaceInsideArrayLiteralBrackets:
8
+ EnforcedStyle: no_space
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.4.4
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2025-12-20
4
+
5
+ - Initial release
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official email address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ [INSERT CONTACT METHOD].
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Jaryl Sim
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # StandardId Apple Provider
2
+
3
+ This gem extracts the Apple OAuth provider from the core [`standard_id`](https://github.com/rarebit-one/standard_id) engine so installations can opt into Apple login independently of the base gem.
4
+
5
+ ## Installation
6
+
7
+ Add the gem next to `standard_id`:
8
+
9
+ ```ruby
10
+ # Gemfile
11
+ gem "standard_id"
12
+ gem "standard_id-apple"
13
+ ```
14
+
15
+ Then install:
16
+
17
+ ```bash
18
+ bundle install
19
+ ```
20
+
21
+ The gem automatically registers itself with StandardId when it is required.
22
+
23
+ ## Configuration
24
+
25
+ Configure Apple credentials via the StandardId configuration block:
26
+
27
+ ```ruby
28
+ StandardId.configure do |config|
29
+ config.social.apple_client_id = ENV["APPLE_CLIENT_ID"]
30
+ config.social.apple_mobile_client_id = ENV["APPLE_MOBILE_CLIENT_ID"] # optional
31
+ config.social.apple_team_id = ENV["APPLE_TEAM_ID"]
32
+ config.social.apple_key_id = ENV["APPLE_KEY_ID"]
33
+ config.social.apple_private_key = ENV["APPLE_PRIVATE_KEY_PEM"]
34
+ end
35
+ ```
36
+
37
+ With those values in place, StandardId routes such as `/auth/callback/apple` continue to function using this provider gem.
38
+
39
+ ## Testing
40
+
41
+ Run the spec suite:
42
+
43
+ ```bash
44
+ bundle exec rspec
45
+ ```
46
+
47
+ ## Development
48
+
49
+ 1. `bin/setup`
50
+ 2. `bundle exec rspec`
51
+
52
+ To release a new version:
53
+
54
+ 1. Update the version in `lib/standard_id/apple/version.rb`.
55
+ 2. Run `bundle exec rake release` to tag, push, and publish to RubyGems.
56
+
57
+ ## License
58
+
59
+ MIT — see [LICENSE.txt](LICENSE.txt).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,228 @@
1
+ require "uri"
2
+ require "net/http"
3
+ require "json"
4
+ require "jwt"
5
+
6
+ module StandardId
7
+ module Providers
8
+ class Apple < Base
9
+ ISSUER = "https://appleid.apple.com".freeze
10
+ AUTH_ENDPOINT = "#{ISSUER}/auth/authorize".freeze
11
+ TOKEN_ENDPOINT = "#{ISSUER}/auth/token".freeze
12
+ JWKS_URI = "#{ISSUER}/auth/keys".freeze
13
+ DEFAULT_SCOPE = "name email".freeze
14
+ DEFAULT_RESPONSE_MODE = "form_post".freeze
15
+
16
+ class << self
17
+ def provider_name
18
+ "apple"
19
+ end
20
+
21
+ def authorization_url(state:, redirect_uri:, **options)
22
+ scope = options[:scope] || DEFAULT_SCOPE
23
+ response_mode = options[:response_mode] || DEFAULT_RESPONSE_MODE
24
+
25
+ ensure_basic_credentials!
26
+
27
+ query = {
28
+ client_id: StandardId.config.social.apple_client_id,
29
+ redirect_uri: redirect_uri,
30
+ response_type: "code",
31
+ scope: scope,
32
+ response_mode: response_mode,
33
+ state: state
34
+ }
35
+
36
+ "#{AUTH_ENDPOINT}?#{URI.encode_www_form(query)}"
37
+ end
38
+
39
+ def get_user_info(code: nil, id_token: nil, access_token: nil, redirect_uri: nil, **options)
40
+ client_id = options[:client_id] || StandardId.config.social.apple_client_id
41
+
42
+ if id_token.present?
43
+ build_response(
44
+ verify_id_token(id_token: id_token, client_id: client_id),
45
+ tokens: { id_token: id_token }
46
+ )
47
+ elsif code.present?
48
+ exchange_code_for_user_info(code: code, redirect_uri: redirect_uri, client_id: client_id)
49
+ elsif access_token.present?
50
+ raise StandardId::InvalidRequestError, "Access token login flow is not supported for Apple"
51
+ else
52
+ raise StandardId::InvalidRequestError, "Either code or id_token must be provided"
53
+ end
54
+ end
55
+
56
+ def config_schema
57
+ {
58
+ apple_client_id: { type: :string, default: nil },
59
+ apple_mobile_client_id: { type: :string, default: nil },
60
+ apple_private_key: { type: :string, default: nil },
61
+ apple_key_id: { type: :string, default: nil },
62
+ apple_team_id: { type: :string, default: nil }
63
+ }
64
+ end
65
+
66
+ def default_scope
67
+ DEFAULT_SCOPE
68
+ end
69
+
70
+ def skip_csrf?
71
+ true
72
+ end
73
+
74
+ def supports_mobile_callback?
75
+ true
76
+ end
77
+
78
+ def resolve_params(params, context: {})
79
+ flow = context[:flow] || :web
80
+ client_id = flow == :mobile ? StandardId.config.social.apple_mobile_client_id : StandardId.config.social.apple_client_id
81
+
82
+ params.merge(client_id: client_id)
83
+ end
84
+
85
+ def exchange_code_for_user_info(code:, redirect_uri:, client_id: StandardId.config.social.apple_client_id)
86
+ ensure_full_credentials!(client_id: client_id)
87
+ raise StandardId::InvalidRequestError, "Missing authorization code" if code.blank?
88
+
89
+ token_response = HttpClient.post_form(TOKEN_ENDPOINT, {
90
+ client_id: client_id,
91
+ client_secret: generate_client_secret(client_id: client_id),
92
+ code: code,
93
+ grant_type: "authorization_code",
94
+ redirect_uri: redirect_uri
95
+ })
96
+
97
+ unless token_response.is_a?(Net::HTTPSuccess)
98
+ error_body = begin
99
+ JSON.parse(token_response.body)
100
+ rescue StandardError
101
+ {}
102
+ end
103
+ raise StandardId::InvalidRequestError, "Failed to exchange Apple authorization code: #{error_body["error"]}"
104
+ end
105
+
106
+ parsed_token = JSON.parse(token_response.body)
107
+ id_token = parsed_token["id_token"]
108
+ raise StandardId::InvalidRequestError, "Apple response missing id_token" if id_token.blank?
109
+
110
+ tokens = extract_token_payload(parsed_token)
111
+ user_info = verify_id_token(id_token: id_token, client_id: client_id)
112
+
113
+ build_response(user_info, tokens: tokens)
114
+ rescue StandardError => e
115
+ raise e if e.is_a?(StandardId::OAuthError)
116
+
117
+ raise StandardId::OAuthError, e.message, cause: e
118
+ end
119
+
120
+ def verify_id_token(id_token:, client_id: StandardId.config.social.apple_client_id)
121
+ raise StandardId::InvalidRequestError, "Missing id_token" if id_token.blank?
122
+ raise StandardId::InvalidRequestError, "Apple client_id is not configured" if client_id.blank?
123
+
124
+ decoded_token = JWT.decode(id_token, nil, false)
125
+ header = decoded_token[1]
126
+
127
+ jwk = fetch_jwk(kid: header["kid"])
128
+
129
+ verified_payload, = JWT.decode(
130
+ id_token,
131
+ jwk.public_key,
132
+ true,
133
+ algorithm: "RS256",
134
+ iss: ISSUER,
135
+ verify_iss: true,
136
+ aud: client_id,
137
+ verify_aud: true
138
+ )
139
+
140
+ {
141
+ "sub" => verified_payload["sub"],
142
+ "email" => verified_payload["email"],
143
+ "email_verified" => verified_payload["email_verified"],
144
+ "is_private_email" => verified_payload["is_private_email"]
145
+ }.compact
146
+ rescue JWT::InvalidAudError => e
147
+ raise StandardId::InvalidRequestError, "Invalid Apple ID token audience: #{e.message}"
148
+ rescue JWT::DecodeError => e
149
+ raise StandardId::InvalidRequestError, "Invalid Apple ID token: #{e.message}"
150
+ rescue StandardError => e
151
+ raise e if e.is_a?(StandardId::OAuthError)
152
+
153
+ raise StandardId::OAuthError, e.message, cause: e
154
+ end
155
+
156
+ private
157
+
158
+ def ensure_basic_credentials!(client_id: StandardId.config.social.apple_client_id)
159
+ return if client_id.present?
160
+
161
+ raise StandardId::InvalidRequestError, "Apple OAuth is not configured"
162
+ end
163
+
164
+ def ensure_full_credentials!(client_id: nil)
165
+ ensure_basic_credentials!(client_id: client_id)
166
+
167
+ required = [
168
+ StandardId.config.social.apple_private_key,
169
+ StandardId.config.social.apple_key_id,
170
+ StandardId.config.social.apple_team_id
171
+ ]
172
+
173
+ return unless required.any?(&:blank?)
174
+
175
+ raise StandardId::InvalidRequestError, "Apple OAuth credentials are incomplete"
176
+ end
177
+
178
+ def generate_client_secret(client_id: StandardId.config.social.apple_client_id)
179
+ header = {
180
+ alg: "ES256",
181
+ kid: StandardId.config.social.apple_key_id
182
+ }
183
+
184
+ payload = {
185
+ iss: StandardId.config.social.apple_team_id,
186
+ iat: Time.current.to_i,
187
+ exp: Time.current.to_i + 3600,
188
+ aud: ISSUER,
189
+ sub: client_id
190
+ }
191
+
192
+ private_key = OpenSSL::PKey::EC.new(StandardId.config.social.apple_private_key)
193
+ JWT.encode(payload, private_key, "ES256", header)
194
+ end
195
+
196
+ def fetch_jwk(kid:)
197
+ uri = URI(JWKS_URI)
198
+ jwks_response = Net::HTTP.get_response(uri)
199
+
200
+ unless jwks_response.is_a?(Net::HTTPSuccess)
201
+ raise StandardId::InvalidRequestError, "Failed to fetch Apple JWKS"
202
+ end
203
+
204
+ jwks_data = JSON.parse(jwks_response.body)
205
+ jwk_data = jwks_data["keys"].find { |key| key["kid"] == kid }
206
+
207
+ raise StandardId::InvalidRequestError, "JWK with kid '#{kid}' not found in Apple's JWKS" unless jwk_data
208
+
209
+ JWT::JWK.import(jwk_data)
210
+ rescue StandardError => e
211
+ raise e if e.is_a?(StandardId::OAuthError)
212
+
213
+ raise StandardId::OAuthError, "Failed to fetch JWK: #{e.message}"
214
+ end
215
+
216
+ def extract_token_payload(parsed_token)
217
+ {
218
+ access_token: parsed_token["access_token"],
219
+ refresh_token: parsed_token["refresh_token"],
220
+ id_token: parsed_token["id_token"]
221
+ }.compact
222
+ end
223
+ end
224
+ end
225
+ end
226
+ end
227
+
228
+ StandardId::ProviderRegistry.register(:apple, StandardId::Providers::Apple)
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module StandardId
4
+ module Apple
5
+ VERSION = "0.1.0"
6
+ end
7
+ end
@@ -0,0 +1,4 @@
1
+ require "active_support/core_ext/numeric/time"
2
+ require "active_support/core_ext/hash/indifferent_access"
3
+ require "standard_id"
4
+ require "standard_id/apple/providers/apple"
metadata ADDED
@@ -0,0 +1,103 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: standard_id-apple
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jaryl Sim
8
+ bindir: exe
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: activesupport
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '8.0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '8.0'
26
+ - !ruby/object:Gem::Dependency
27
+ name: jwt
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.7'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2.7'
40
+ - !ruby/object:Gem::Dependency
41
+ name: standard_id
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '0.1'
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 0.1.7
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '0.1'
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: 0.1.7
60
+ description: Extracted StandardId::Providers::Apple implementation packaged as a standalone
61
+ gem so StandardId installations can opt into Sign in with Apple independently.
62
+ email:
63
+ - code@jaryl.dev
64
+ executables: []
65
+ extensions: []
66
+ extra_rdoc_files: []
67
+ files:
68
+ - ".rspec"
69
+ - ".rubocop.yml"
70
+ - ".ruby-version"
71
+ - CHANGELOG.md
72
+ - CODE_OF_CONDUCT.md
73
+ - LICENSE.txt
74
+ - README.md
75
+ - Rakefile
76
+ - lib/standard_id/apple.rb
77
+ - lib/standard_id/apple/providers/apple.rb
78
+ - lib/standard_id/apple/version.rb
79
+ homepage: https://github.com/rarebit-one/standard_id_apple
80
+ licenses:
81
+ - MIT
82
+ metadata:
83
+ homepage_uri: https://github.com/rarebit-one/standard_id_apple
84
+ source_code_uri: https://github.com/rarebit-one/standard_id_apple
85
+ changelog_uri: https://github.com/rarebit-one/standard_id_apple/blob/main/CHANGELOG.md
86
+ rdoc_options: []
87
+ require_paths:
88
+ - lib
89
+ required_ruby_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: 3.2.0
94
+ required_rubygems_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ requirements: []
100
+ rubygems_version: 3.6.7
101
+ specification_version: 4
102
+ summary: Apple Sign In provider plugin for the StandardId engine.
103
+ test_files: []