{"id":25097272,"url":"https://github.com/messagemedia/auth0-integration","last_synced_at":"2025-04-19T07:35:48.533Z","repository":{"id":79431059,"uuid":"148081988","full_name":"messagemedia/auth0-integration","owner":"messagemedia","description":"Auth0 SMS integration with MessageMedia","archived":false,"fork":false,"pushed_at":"2019-09-10T02:56:38.000Z","size":93,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T06:51:36.605Z","etag":null,"topics":["auth0","authentication","integration","messagemedia","security","sms"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/messagemedia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-10T01:23:32.000Z","updated_at":"2021-05-20T22:50:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"46cca6d8-15fd-4334-b6c0-3ab6125738c5","html_url":"https://github.com/messagemedia/auth0-integration","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messagemedia%2Fauth0-integration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messagemedia%2Fauth0-integration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messagemedia%2Fauth0-integration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messagemedia%2Fauth0-integration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/messagemedia","download_url":"https://codeload.github.com/messagemedia/auth0-integration/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249638252,"owners_count":21304305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auth0","authentication","integration","messagemedia","security","sms"],"created_at":"2025-02-07T17:31:07.928Z","updated_at":"2025-04-19T07:35:48.526Z","avatar_url":"https://github.com/messagemedia.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setting up MessageMedia SMS for Auth\n[![HitCount](http://hits.dwyl.io/messagemedia/auth0-integration.svg)](http://hits.dwyl.io/messagemedia/auth0-integration)\n\nThis guide assumes that you've already got your MessageMedia API credentials. If you don't, you can sign up for them for free over [here](https://developers.messagemedia.com/register).\n\n## Auth0 Configuration\n\nMake sure the SMS Passwordless connection is enabled by going to [Connections → Passwordless in your Auth0 account](https://manage.auth0.com/#/connections/passwordless) and switch it on. You can configure everything through the UI except for choosing a different provider. You can enter dummy values for Twilio SID and AuthToken.\n\nTo change the provider to MessageMedia, you need to use the Management API. To get an access token, go to the [API Explorer tab of your Auth0 Management API](https://manage.auth0.com/#/apis/management/explorer). You can use the API Explorer directly, curl or Postman.\n\n![Step 1](https://developers.messagemedia.com/wp-content/uploads/2018/09/step1.png)\n\nIf you use the API Explorer, you need to add the access token and tenant URL to it:\n\n![Step 2](https://developers.messagemedia.com/wp-content/uploads/2018/09/step2.png)\n\nUsing your access token, make a GET request to `https://{YOURTENANT}.auth0.com/api/v2/connections` to find out the ID for your SMS connection. You can make that request [in the API Explorer](https://auth0.com/docs/api/management/v2#!/Connections/get_connections) by clicking **Try**.\n\n![Step 3](https://developers.messagemedia.com/wp-content/uploads/2018/09/step3.png)\n\nGo through the returned JSON to find the connection named `sms` and take note of the ID to use in the next step. Also, copy the `options` object.\n\n![Step 4](https://developers.messagemedia.com/wp-content/uploads/2018/09/step4.png)\n\nNext, make a PATCH request to `https://{YOURTENANT}.auth0.com/api/v2/connections/{CONNECTION_ID}`, using the connection ID you found. You can do that [in the API Explorer](https://auth0.com/docs/api/management/v2#!/Connections/patch_connections_by_id). The body of the request must be the existing `options` object with these edits: remove `twilio_sid` and `twilio_token` and instead add the following entries.\n\n````json\n    \"provider\": \"sms_gateway\",\n    \"gateway_url\": \"https://auth0-api.messagemedia.com/messages\",\n    \"gateway_authentication\": {\n        \"method\": \"bearer\",\n        \"subject\": \"{YOUR_API_KEY}\",\n        \"audience\": \"{YOUR_API_SECRET}\",\n        \"secret\": \"MessageMedia\"\n    },\n    \"from\": \"{SENDER_PHONE_NUMBER}\",\n````\n\nEnter your Message Media API key and secret as `subject` and `audience` in the `gateway_authentication` section. The `secret` is hardcoded to the string `MessageMedia`. `from` is the sender's phone number.\n\nSend the request (**Try** in the API explorer) to store the configuration.\n\n![Step 5](https://developers.messagemedia.com/wp-content/uploads/2018/09/step5.png)\n\nOnce that's done, you can change to the _Try_ tab in the Auth0 UI for the SMS Connection, enter your phone number and hit **Try**. An authentication code message should arrive on your phone.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmessagemedia%2Fauth0-integration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmessagemedia%2Fauth0-integration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmessagemedia%2Fauth0-integration/lists"}