b0VIM 8.1å#_ßÆ€joshJoshs-Mac-mini.local~josh/Projects/fastlane/fastlane/spaceship/lib/spaceship/spaceauth_runner.rb 3210#"! UtpJadŽÒJîÁ²±‹Šya?$Ó­¥¤˜ŒHÜ Ë ¸  ; õ Ÿ Y H   À ¿ b 8 0  ì L ,  Þ ¬ y q p D " º°¯€m^îßйzyÌ´u-# äÜÖÒÑend end end (/darwin/ =~ RUBY_PLATFORM) != nil def mac? end end puts("Successfully copied text into your clipboard 🎨".green) Open3.popen3('pbcopy') { |input, _, _| input << yaml } require 'open3' if mac? && Spaceship::Client::UserInterface.interactive? && agree("🙄 Should fastlane copy the cookie into your clipboard, so you can easily paste it? (y/n)", true) puts("export FASTLANE_SESSION='#{yaml}'".cyan.underline) puts("Example:") puts("") puts("") puts(yaml.cyan.underline) puts("Pass the following via the FASTLANE_SESSION environment variable:") puts("") puts("---") yaml = cookies.to_yaml.gsub("\n", "\\n") end cookie.name.start_with?("myacinfo") || cookie.name == "dqsid" || cookie.name.start_with?("DES") cookies.select! do |cookie| # We remove all the un-needed cookies ) true # allow YAML aliases [], # symbols allowlist [HTTP::Cookie, Time], # classes allowlist itc_cookie_content, cookies = YAML.safe_load( # value: HSARMTKNSRVTWFlaF/ek8asaa9lymMA0dN8JQ6pY7B3F5kdqTxJvMT19EVEFX8EQudB/uNwBHOHzaa30KYTU/eCP/UF7vGTgxs6PAnlVWKscWssOVHfP2IKWUPaa4Dn+I6ilA7eAFQsiaaVT # name: DES5c148586daa451e55afb017aa62418f91 # Example: # # We're not sure if the key changes # The only value we actually need is the "DES5c148586daa451e55afb017aa62418f91" cookie itc_cookie_content = Spaceship::Tunes.client.store_cookie end raise ex puts("Exception type: #{ex.class}") puts("") puts("(if it is set) and re-run `fastlane spaceauth`".yellow) puts("Please try unsetting the FASTLANE_SESSION environment variable".yellow) puts("This could be an issue with App Store Connect,".yellow) puts("Please check your credentials and try again.".yellow) puts("Could not login to App Store Connect".red) rescue => ex puts("") puts("Successfully logged in to App Store Connect".green) Spaceship::Tunes.login(@username) puts("Logging into to App Store Connect (#{@username})...") begin def run end @username ||= ask("Username: ") @username ||= CredentialsManager::AppfileConfig.try_fetch_value(:apple_id) @username = username def initialize(username: nil) class SpaceauthRunnermodule Spaceshiprequire_relative 'tunes/tunes_client'require 'yaml'require 'credentials_manager/appfile_config'require 'colored'