Chrome Extensions with Google authentication
Integrate Google authentication into your Chrome extension using Aurinko's backend API for seamless user management and offline access.
curl -X GET -G https://api.aurinko.io/v1/auth/authorize -d clientId='{APPLICATION_ID}' -d serviceType='Google' -d scopes='Mail.Send' -d userAccount='primary'window.onload=function(){ if(window.opener!=null){ window.opener.postMessage("{\\"status\\":\\"success\\",\\"requestId\\":\\ "a22ed91e-14a1-49f8-a148-9b5bb33af91a\\",\\"type\\":\\"accountAuthResult \\"}",'\*'); } window.close(); }curl -X GET -G https://api.aurinko.io/v1/auth/authorize -d clientId='{APPLICATION_ID}' -d serviceType='{MyCRM}' -d userAccount='secondary'{ "id": "3df3ce21-07c0-4cec-a8de-ed4c570ee15c", "appId": 1, "email": "[email protected]", "authOrgId": "yoxel.net", "trustedIdentity": true, "accounts": [ { "id": 2739, "serviceType": "Google", "type": "primary", "active": true, "daemon": false, "loginString": "[email protected]", "email": "[email protected]", "name": "Google User", "authUserId": "abcdabcb-ad8d-4bee-bd69-787675478785", "authOrgId": "yoxel.net", "authObtainedAt": "2021-03-21T16:58:56.823Z" }, { "id": 2740, "serviceType": "{MyCRM}", "type": "secondary", "active": true, "daemon": false, "loginString": "[email protected]", "email": "[email protected]", "name": "Crm User", "serverUrl": "https://crm.instance", "authUserId": "374", "authOrgId": "999", "authObtainedAt": "2021-03-21T17:39:10.513Z" } ] }curl -H 'X-Aurinko-AccountId: 2739' -X GET https://api.aurinko.io/v1/email/messages curl -H 'X-Aurinko-AccountId: 2740' -X GET https://api.aurinko.io/v1/contacts
Last updated
Was this helpful?