Skip to content

2FA authentication not working (no SMS sent) #89

@derMart

Description

@derMart

Hey all,

Running on linux, I started the anisette server via:

docker run -d --restart always --name anisette-v3 -p 6969:6969 --volume anisette-v3_data:${PATH_TO_DATA_DIR} dadoum/anisette-v3-server

then created a database file in the root of this repo

sqlite3 reports.db 'CREATE TABLE reports (id_short TEXT, timestamp INTEGER, datePublished INTEGER, payload TEXT, id TEXT, statusCode INTEGER, PRIMARY KEY(id_short,timestamp))'

Then I created a venv

python -m venv venv

activated the venv

source venv/bin/activate

then installed dependencies:

pip install pbkdf2 requests cryptography srp pycryptodome

then started the request script

$ python request_reports.py 
Apple ID: ${REDACTED}
Password: 
pyprovision is not installed, querying http://localhost:6969 for an anisette server
pyprovision is not installed, querying http://localhost:6969 for an anisette server
2FA required, requesting code
pyprovision is not installed, querying http://localhost:6969 for an anisette server
Enter 2FA code:

The apple Id used has SMS 2FA enabled (I guess every newly created apple ID has it, as a mobile number is now required to register an account :/ )
The SMS 2FA also works when logging in into the apple account. But with the request_reports.py no SMS is sent to the mobile number. Is this a known problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions