spaceship/lib/spaceship/connect_api/token.rb in fastlane-2.223.1 vs spaceship/lib/spaceship/connect_api/token.rb in fastlane-2.224.0

- old
+ new

@@ -27,10 +27,11 @@ # There is no way to determine if the team associated with this # key is for App Store or Enterprise so this is the temporary workaround attr_accessor :in_house def self.from(hash: nil, filepath: nil) + # FIXME: Ensure `in_house` value is a boolean. api_token ||= self.create(**hash.transform_keys(&:to_sym)) if hash api_token ||= self.from_json_file(filepath) if filepath return api_token end @@ -99,10 +100,10 @@ payload = { # Reduce the issued-at-time in case our time is slighly ahead of Apple's servers, which causes the token to be rejected. iat: now.to_i - 60, exp: @expiration.to_i, - aud: 'appstoreconnect-v1' + aud: @in_house ? 'apple-developer-enterprise-v1' : 'appstoreconnect-v1' } if issuer_id payload[:iss] = issuer_id else # Consider the key as individual key.