mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Verify authorisation header being send
This commit is contained in:
@@ -56,6 +56,10 @@ def receive_mmg_sms():
|
|||||||
def receive_firetext_sms():
|
def receive_firetext_sms():
|
||||||
post_data = request.form
|
post_data = request.form
|
||||||
|
|
||||||
|
# This is a pre-implementation test code to validate the provider is sending through what they claim.
|
||||||
|
auth = request.authorization
|
||||||
|
current_app.logger.info("Inbound sms username: {}".format(auth.username))
|
||||||
|
|
||||||
inbound_number = strip_leading_forty_four(post_data['destination'])
|
inbound_number = strip_leading_forty_four(post_data['destination'])
|
||||||
|
|
||||||
service = fetch_potential_service(inbound_number, 'firetext')
|
service = fetch_potential_service(inbound_number, 'firetext')
|
||||||
|
|||||||
Reference in New Issue
Block a user