mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -05:00
Merge pull request #1404 from alphagov/vb-test-token
Inbound sms pre-implementation test 1
This commit is contained in:
@@ -56,6 +56,13 @@ def receive_mmg_sms():
|
||||
def receive_firetext_sms():
|
||||
post_data = request.form
|
||||
|
||||
# This is pre-implementation test code to validate the provider is basic auth headers.
|
||||
auth = request.authorization
|
||||
if auth:
|
||||
current_app.logger.info("Inbound sms username: {}".format(auth.username))
|
||||
else:
|
||||
current_app.logger.info("Inbound sms no auth header")
|
||||
|
||||
inbound_number = strip_leading_forty_four(post_data['destination'])
|
||||
|
||||
service = fetch_potential_service(inbound_number, 'firetext')
|
||||
|
||||
Reference in New Issue
Block a user